-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(content-releases): add end-to-end tests (#19407)
- Loading branch information
1 parent
53caa29
commit bbc0605
Showing
43 changed files
with
2,686 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Run e2e tests' | ||
description: 'Run e2e tests' | ||
inputs: | ||
runEE: | ||
description: 'Should run EE or CE e2e tests' | ||
jestOptions: | ||
description: 'Jest options' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- run: $GITHUB_ACTION_PATH/script.sh | ||
env: | ||
RUN_EE: ${{ inputs.runEE }} | ||
JEST_OPTIONS: ${{ inputs.jestOptions }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## disable EE if options not set | ||
if [[ -z "$RUN_EE" ]]; then | ||
export STRAPI_DISABLE_EE=true | ||
else | ||
export STRAPI_DISABLE_LICENSE_PING=true | ||
fi | ||
|
||
jestOptions=($JEST_OPTIONS) | ||
|
||
yarn test:e2e --setup --concurrency=1 "${jestOptions[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
e2e/app-template/template/src/api/article/content-types/article/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "articles", | ||
"info": { | ||
"singularName": "article", | ||
"pluralName": "articles", | ||
"displayName": "Article", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"attributes": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"content": { | ||
"type": "blocks" | ||
}, | ||
"authors": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::author.author", | ||
"inversedBy": "articles" | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...te/src/api/testing/controllers/testing.js → ...te/src/api/article/controllers/article.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* testing controller | ||
* article controller | ||
*/ | ||
|
||
const { createCoreController } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreController('api::testing.testing'); | ||
module.exports = createCoreController('api::article.article'); |
Oops, something went wrong.