Skip to content

Commit

Permalink
Merge pull request #127 from lilt/3.x-update
Browse files Browse the repository at this point in the history
Fix sync mechanism
  • Loading branch information
hadomskyi authored Oct 4, 2023
2 parents c356a72 + e701ff9 commit 680f508
Show file tree
Hide file tree
Showing 36 changed files with 1,827 additions and 828 deletions.
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 and disabled split send',
() => {
const entryLabel = 'The Future of Augmented Reality';
const entryId = 24;

it('with copy slug disabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.instantFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: false,
languages: ['de', 'es', 'uk'],
batchPublishing: true,
splitSend: false
});
});
});
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 single target language',
() => {
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"]
})
});
});
22 changes: 22 additions & 0 deletions e2e/cypress/e2e/jobs/instant/success-path-single-copy-slug.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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('with copy slug enabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.instantFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: true,
enableAfterPublish: false,
languages: ["de"]
})
});
});
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('with copy slug disabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.instantFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: false,
languages: ["de"],
splitSend: false,
})
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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('with copy slug disabled & enable after publish enabled', () => {
const {jobTitle, slug} = generateJobData();

cy.instantFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: true,
languages: ["de"]
})
});
});
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 and disabled split send',
() => {
const entryLabel = 'The Future of Augmented Reality';
const entryId = 24;

it('with copy slug disabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: false,
languages: ['de', 'es', 'uk'],
batchPublishing: true,
splitSend: false
});
});

});
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 single target language',
() => {
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.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: true,
enableAfterPublish: true,
languages: ["de"]
})
});
});
22 changes: 22 additions & 0 deletions e2e/cypress/e2e/jobs/verified/success-path-single-copy-slug.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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('with copy slug enabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: true,
enableAfterPublish: false,
languages: ["de"]
})
});
});
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('with copy slug disabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: false,
languages: ["de"],
splitSend: false
})
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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('with copy slug disabled & enable after publish enabled', () => {
const {jobTitle, slug} = generateJobData();

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: true,
languages: ["de"]
})
});
});
45 changes: 0 additions & 45 deletions e2e/cypress/e2e/jobs/verified/success-path-single.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,4 @@ describe(
languages: ["de"],
})
});

it('with copy slug disabled & enable after publish enabled', () => {
const {jobTitle, slug} = generateJobData();

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: false,
enableAfterPublish: true,
languages: ["de"]
})
});

it('with copy slug enabled & enable after publish disabled', () => {
const {jobTitle, slug} = generateJobData();

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: true,
enableAfterPublish: false,
languages: ["de"]
})
});

it('with copy slug enabled & enable after publish enabled', () => {
const {jobTitle, slug} = generateJobData();

cy.log(`Job title: ${jobTitle}`)
cy.log(`Slug: ${slug}`)

cy.verifiedFlow({
slug,
entryLabel,
jobTitle,
entryId,
copySlug: true,
enableAfterPublish: true,
languages: ["de"]
})
});
});
Loading

0 comments on commit 680f508

Please sign in to comment.