diff --git a/high-level-tests/e2e/cypress/fixtures/campaign-features.json b/high-level-tests/e2e/cypress/fixtures/campaign-features.json new file mode 100644 index 00000000000..1b6d4e55c51 --- /dev/null +++ b/high-level-tests/e2e/cypress/fixtures/campaign-features.json @@ -0,0 +1,14 @@ +[ + { + "id": 1, + "campaignId": 1, + "featureId": 1, + "params": { "label": "Surnom", "type": "STRING" } + }, + { + "id": 2, + "campaignId": 4, + "featureId": 1, + "params": { "label": "Surnom", "type": "STRING" } + } +] diff --git a/high-level-tests/e2e/cypress/fixtures/campaigns.json b/high-level-tests/e2e/cypress/fixtures/campaigns.json index ff464dae69b..8ef1e8ec9f4 100644 --- a/high-level-tests/e2e/cypress/fixtures/campaigns.json +++ b/high-level-tests/e2e/cypress/fixtures/campaigns.json @@ -7,8 +7,7 @@ "organizationId": 1, "creatorId": 1, "ownerId": 1, - "targetProfileId": 1, - "idPixLabel": "Surnom" + "targetProfileId": 1 }, { "id": 2, @@ -37,8 +36,7 @@ "type": "PROFILES_COLLECTION", "organizationId": 1, "creatorId": 1, - "ownerId": 1, - "idPixLabel": "Surnom" + "ownerId": 1 }, { "id": 5, diff --git a/high-level-tests/e2e/cypress/support/step_definitions/index.js b/high-level-tests/e2e/cypress/support/step_definitions/index.js index 7b8a6cc7a8a..cb201df7e77 100644 --- a/high-level-tests/e2e/cypress/support/step_definitions/index.js +++ b/high-level-tests/e2e/cypress/support/step_definitions/index.js @@ -25,6 +25,8 @@ Given("les données de test sont chargées", () => { cy.task("db:fixture", "target-profile-trainings"); cy.task("db:fixture", "training-triggers"); cy.task("db:fixture", "training-trigger-tubes"); + cy.task("db:fixture", "features"); + cy.task("db:fixture", "campaign-features"); }); Given("tous les comptes sont créés", () => { @@ -98,8 +100,7 @@ Then(`je vois {string} comme {string}`, (value, label) => { .within(() => cy.contains(value)); }); -Then('la page devrait être accessible', function() { +Then("la page devrait être accessible", function () { cy.injectAxe(); cy.checkA11yAndShowViolations({}); }); -