-
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.
Support async translation publishing
ENG-12759
- Loading branch information
Showing
42 changed files
with
887 additions
and
108 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
67 changes: 67 additions & 0 deletions
67
e2e/cypress/e2e/jobs/copy-source-text-flow/success-path-multiple-async-publishing.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,67 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Copy Source Text] Success path for job with multiple target languages', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
|
||
it('with copy slug disabled & enable after publish disabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
|
||
it('with copy slug disabled & enable after publish enabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: false, | ||
enableAfterPublish: true, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
|
||
it('with copy slug enabled & enable after publish disabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: true, | ||
enableAfterPublish: false, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
|
||
it('with copy slug enabled & enable after publish enabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: true, | ||
enableAfterPublish: true, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
}); |
63 changes: 63 additions & 0 deletions
63
e2e/cypress/e2e/jobs/copy-source-text-flow/success-path-single-async-publishing.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,63 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Copy Source Text] Success path for job with one target language', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
|
||
it('with copy slug disabled & enable after publish disabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ["de"], | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
|
||
it('with copy slug disabled & enable after publish enabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: false, | ||
enableAfterPublish: true, | ||
languages: ["de"], | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
|
||
it('with copy slug enabled & enable after publish disabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: true, | ||
enableAfterPublish: false, | ||
languages: ["de"], | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
|
||
it('with copy slug enabled & enable after publish enabled', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.copySourceTextFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
copySlug: true, | ||
enableAfterPublish: true, | ||
languages: ["de"], | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/cypress/e2e/jobs/instant/success-path-multiple-async-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,25 @@ | ||
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('async publishing', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.instantFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
publishTranslationsAsync: true | ||
}); | ||
}); | ||
|
||
}); |
23 changes: 23 additions & 0 deletions
23
e2e/cypress/e2e/jobs/instant/success-path-single-async-publishing.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,23 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Instant] Success path for job with single target language', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('async publishing', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.instantFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ["de"], | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/cypress/e2e/jobs/verified/success-path-multiple-bulk-async-publishing.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,25 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Verified] Success path for job with multiple target languages with bulk publishing', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('async publishing', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.verifiedFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: true, | ||
publishTranslationsAsync: true | ||
}); | ||
}); | ||
|
||
}); |
24 changes: 24 additions & 0 deletions
24
e2e/cypress/e2e/jobs/verified/success-path-multiple-single-async-publishing.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( | ||
'[Verified] Success path for job with multiple target languages with single publishing', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('async publishing', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.verifiedFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ['de', 'es', 'uk'], | ||
batchPublishing: false, | ||
publishTranslationsAsync: true | ||
}); | ||
}); | ||
}); |
23 changes: 23 additions & 0 deletions
23
e2e/cypress/e2e/jobs/verified/success-path-single-async-publishing.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,23 @@ | ||
const {generateJobData} = require('../../../support/job/generator.js'); | ||
|
||
describe( | ||
'[Verified] Success path for job with single target language', | ||
() => { | ||
const entryLabel = 'The Future of Augmented Reality'; | ||
const entryId = 24; | ||
|
||
it('async publishing', () => { | ||
const {jobTitle, slug} = generateJobData(); | ||
|
||
cy.verifiedFlow({ | ||
slug, | ||
entryLabel, | ||
jobTitle, | ||
entryId, | ||
copySlug: false, | ||
enableAfterPublish: false, | ||
languages: ["de"], | ||
publishTranslationsAsync: true | ||
}) | ||
}); | ||
}); |
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
Oops, something went wrong.