diff --git a/frontend/cypress/e2e/vessel_sidebar/fishing.spec.ts b/frontend/cypress/e2e/vessel_sidebar/fishing.spec.ts index ef329b2c90..30ec28fa69 100644 --- a/frontend/cypress/e2e/vessel_sidebar/fishing.spec.ts +++ b/frontend/cypress/e2e/vessel_sidebar/fishing.spec.ts @@ -192,8 +192,8 @@ context('Vessel sidebar fishing tab', () => { cy.get('*[data-cy^="vessel-menu-fishing"]').click({ timeout: 10000 }) cy.get('*[data-cy^="vessel-fishing-see-all"]').click({ timeout: 10000 }) cy.scrollTo(0, 380) - cy.get('*[data-cy^="show-fishing-activity"]').eq(7).parent().contains('Retour au port') - cy.get('*[data-cy^="show-fishing-activity"]').eq(7).scrollIntoView().click({ timeout: 20000 }) + cy.get('*[data-cy^="show-fishing-activity"]').eq(8).parent().contains('Retour au port') + cy.get('*[data-cy^="show-fishing-activity"]').eq(8).scrollIntoView().click({ timeout: 20000 }) // Then cy.get('*[data-cy^="fishing-activity-name"]').should('exist').should('have.length', 1).eq(0).contains('RTP') diff --git a/frontend/src/features/Logbook/components/VesselLogbook/LogbookMessages/messages/CPSMessage/__tests__/utils.test.ts b/frontend/src/features/Logbook/components/VesselLogbook/LogbookMessages/messages/CPSMessage/__tests__/utils.test.ts index 5ebf9cd2b6..8e87db800e 100644 --- a/frontend/src/features/Logbook/components/VesselLogbook/LogbookMessages/messages/CPSMessage/__tests__/utils.test.ts +++ b/frontend/src/features/Logbook/components/VesselLogbook/LogbookMessages/messages/CPSMessage/__tests__/utils.test.ts @@ -28,6 +28,6 @@ describe('Logbook/components/vesselLogbook/LogbookMessages/CPSMessage/utils.tsx' const hours = getRemainingMinutes(40) // Then - expect(hours).toEqual(5) + expect(hours).toEqual(40) }) })