Skip to content

Commit

Permalink
FIw few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Feb 9, 2024
1 parent 91c0cff commit 35f1bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/vessel_sidebar/fishing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

0 comments on commit 35f1bfd

Please sign in to comment.