From 499065873af502d6d0ea0fb3b918034585375ad2 Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Wed, 21 Aug 2024 13:46:34 +0200 Subject: [PATCH] Update e2e tests following test data update --- .../behavior.spec.ts | 4 ++-- .../logbook_prior_notification_form/form.spec.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename frontend/cypress/e2e/side_window/{logbook_prior_notification_card => logbook_prior_notification_form}/behavior.spec.ts (77%) diff --git a/frontend/cypress/e2e/side_window/logbook_prior_notification_card/behavior.spec.ts b/frontend/cypress/e2e/side_window/logbook_prior_notification_form/behavior.spec.ts similarity index 77% rename from frontend/cypress/e2e/side_window/logbook_prior_notification_card/behavior.spec.ts rename to frontend/cypress/e2e/side_window/logbook_prior_notification_form/behavior.spec.ts index b4de004b57..90338af917 100644 --- a/frontend/cypress/e2e/side_window/logbook_prior_notification_card/behavior.spec.ts +++ b/frontend/cypress/e2e/side_window/logbook_prior_notification_form/behavior.spec.ts @@ -1,8 +1,8 @@ -import { editSideWindowPriorNotification } from '../logbook_prior_notification_form/utils' +import { editSideWindowPriorNotification } from './utils' context('Side Window > Logbook Prior Notification Form > Behavior', () => { it("Should show a banner, freeze the logbook prior notification form and button when it's in pending send", () => { - editSideWindowPriorNotification(`DES BARS`, 'FAKE_OPERATION_107') + editSideWindowPriorNotification(`LEVE NEDERLAND`, 'FAKE_OPERATION_105') cy.get('.Component-Banner').contains(`Le préavis est en cours de diffusion.`) diff --git a/frontend/cypress/e2e/side_window/logbook_prior_notification_form/form.spec.ts b/frontend/cypress/e2e/side_window/logbook_prior_notification_form/form.spec.ts index 85ac94eccc..25878f9403 100644 --- a/frontend/cypress/e2e/side_window/logbook_prior_notification_form/form.spec.ts +++ b/frontend/cypress/e2e/side_window/logbook_prior_notification_form/form.spec.ts @@ -125,11 +125,11 @@ context('Side Window > Logbook Prior Notification Form > Form', () => { // Given openSideWindowPriorNotificationListAsSuperUser() cy.get('[data-cy="side-window-sub-menu-ALL"]').click() - cy.fill('Rechercher un navire', 'ANCRE') + cy.fill('Rechercher un navire', 'THON') - cy.getTableRowById('FAKE_OPERATION_109_COR').find('[title="Préavis invalidé"]').should('not.exist') + cy.getTableRowById('FAKE_OPERATION_110').find('[title="Préavis invalidé"]').should('not.exist') - cy.getTableRowById('FAKE_OPERATION_109_COR').clickButton('Éditer le préavis') + cy.getTableRowById('FAKE_OPERATION_110').clickButton('Éditer le préavis') if (document.querySelector('[data-cy="first-loader"]')) { cy.getDataCy('first-loader').should('not.be.visible') } @@ -144,6 +144,6 @@ context('Side Window > Logbook Prior Notification Form > Form', () => { cy.clickButton('Fermer') - cy.getTableRowById('FAKE_OPERATION_109_COR').find('[title="Préavis invalidé"]').should('exist') + cy.getTableRowById('FAKE_OPERATION_110').find('[title="Préavis invalidé"]').should('exist') }) })