Skip to content

Commit

Permalink
Merge pull request #130 from lilt/4.x-development
Browse files Browse the repository at this point in the history
Release 4.3.0
  • Loading branch information
hadomskyi authored Oct 4, 2023
2 parents 0ae4e27 + b7a08a2 commit e578dc9
Show file tree
Hide file tree
Showing 38 changed files with 1,388 additions and 346 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ composer.lock
/tests/_craft/storage
/tests/_support/_generated

docker-compose.override.yml
docker-compose.override.yml

e2e/cypress/screenshots
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 4.3.0 - 2023-10-04
### Added
- Queue each translation file transfer separately

## 4.2.2 - 2023-09-22
### Fixed
- Empty user id on draft creation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lilt/craft-lilt-plugin",
"description": "The Lilt plugin makes it easy for you to send content to Lilt for translation right from within Craft CMS.",
"type": "craft-plugin",
"version": "4.2.2",
"version": "4.3.0",
"keywords": [
"craft",
"cms",
Expand Down
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 e578dc9

Please sign in to comment.