-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from lilt/3.x-development
Release 3.5.0
- Loading branch information
Showing
67 changed files
with
8,455 additions
and
510 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
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,69 @@ | ||
name: E2E Tests | ||
on: | ||
push: | ||
branches: | ||
- 3.x #CraftCMS v3 | PHP 7.2 | ||
- 4.x #CraftCMS v4 | PHP 8.0.2 | ||
pull_request: | ||
branches: | ||
- "*" | ||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
scenario: [ | ||
"cypress/e2e/jobs/copy-source-text-flow/filters.cy.js", | ||
"cypress/e2e/jobs/copy-source-text-flow/success-path-multiple.cy.js", | ||
"cypress/e2e/jobs/copy-source-text-flow/success-path-single.cy.js", | ||
"cypress/e2e/jobs/instant/success-path-multiple.cy.js", | ||
"cypress/e2e/jobs/instant/success-path-multiple-copy-slug.cy.js", | ||
"cypress/e2e/jobs/instant/success-path-multiple-copy-slug-and-enable-after-publish.cy.js", | ||
"cypress/e2e/jobs/instant/success-path-multiple-enable-after-publish.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug-and-enable-after-publish.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-enable-after-publish.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug-and-enable-after-publish.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing-enable-after-publish.cy.js", | ||
"cypress/e2e/jobs/verified/success-path-single.cy.js", | ||
"cypress/e2e/jobs/instant/success-path-single.cy.js", | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set the value | ||
id: step_one | ||
run: | | ||
echo "CYPRESS_SCENARIO=${{ matrix.scenario }}" >> $GITHUB_ENV | ||
echo "DB_DATABASE=$(uuidgen)" >> $GITHUB_ENV | ||
- name: Run automation | ||
working-directory: ./e2e | ||
run: | | ||
echo ${DB_DATABASE} | ||
make up | ||
make e2e-github | ||
- name: Copy artifacts | ||
if: ${{ failure() }} | ||
working-directory: ./e2e | ||
run: | | ||
make backup-db | ||
mkdir cypress/craft | ||
mkdir cypress/craft/storage | ||
mkdir cypress/craft/config | ||
docker compose cp app:/app/storage cypress/craft/storage | ||
docker compose cp app:/app/config cypress/craft/config | ||
docker compose cp app:/app/composer.json cypress/craft | ||
docker compose cp app:/app/composer.lock cypress/craft | ||
- name: Use the Upload Artifact GitHub Action | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ failure() }} | ||
with: | ||
name: "${{ github.job }}_${{ github.run_id }}_${{ github.workflow }}_e2e_artifacts" | ||
path: | | ||
./e2e/cypress/craft | ||
./e2e/cypress/screenshots | ||
./e2e/cypress/videos | ||
./e2e/happy-lager-main/storage |
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
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
27 changes: 27 additions & 0 deletions
27
e2e/cypress/e2e/jobs/instant/success-path-multiple-copy-slug-and-enable-after-publish.cy.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Instant] Success path for job with multiple target languages', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('with copy slug enabled & enable after publish enabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.log(`Job title: ${jobTitle}`); | ||
cy.log(`Slug: ${slug}`); | ||
|
||
cy.instantFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: true, | ||
enableAfterPublish: true, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
}); | ||
}); | ||
|
||
}); |
24 changes: 24 additions & 0 deletions
24
e2e/cypress/e2e/jobs/instant/success-path-multiple-copy-slug.cy.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Instant] Success path for job with multiple target languages', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('with copy slug enabled & enable after publish disabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.instantFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: true, | ||
enableAfterPublish: false, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
}); | ||
}); | ||
|
||
}); |
24 changes: 24 additions & 0 deletions
24
e2e/cypress/e2e/jobs/instant/success-path-multiple-enable-after-publish.cy.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Instant] Success path for job with multiple target languages', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('with copy slug disabled & enable after publish enabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.instantFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: false, | ||
enableAfterPublish: true, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
}); | ||
}); | ||
|
||
}); |
Oops, something went wrong.