From 8b37bec4d4d9f76494b59e26068685d1d9775f4f Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Fri, 9 Aug 2024 18:13:09 +0200 Subject: [PATCH] Update vessel used in cypress test --- .../logbook_prior_notification_form/form.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 6cc80484ba..be04b34384 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 @@ -4,11 +4,11 @@ import { editSideWindowPriorNotification } from '../manual_prior_notification_fo context('Side Window > Logbook Prior Notification Form > Form', () => { it('Should not update the form with a PUT request on first render', () => { - cy.intercept('PUT', '/bff/v1/prior_notifications/logbook/FAKE_OPERATION_109*', cy.spy().as('updateForm')) + cy.intercept('PUT', '/bff/v1/prior_notifications/logbook/FAKE_OPERATION_114*', cy.spy().as('updateForm')) - editSideWindowPriorNotification(`L'ANCRE`, 'FAKE_OPERATION_109') + editSideWindowPriorNotification(`LA MER À BOIRE`, 'FAKE_OPERATION_114') - cy.contains(`L'ANCRE SÈCHE (CFR106)`).should('be.visible') + cy.contains(`LA MER À BOIRE (CFR110)`).should('be.visible') cy.get('@updateForm').should('not.have.been.called') @@ -17,7 +17,7 @@ context('Side Window > Logbook Prior Notification Form > Form', () => { cy.get('@updateForm').should('have.been.calledOnce') // Reset - cy.request('PUT', `/bff/v1/prior_notifications/logbook/FAKE_OPERATION_109?operationDate=${dayjs().toISOString()}`, { + cy.request('PUT', `/bff/v1/prior_notifications/logbook/FAKE_OPERATION_114?operationDate=${dayjs().toISOString()}`, { body: { authorTrigram: null, note: null