Skip to content

Commit

Permalink
Fix current month filter e2e test for mission list
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Oct 31, 2023
1 parent 8e9be96 commit f91e51d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ context('Side Window > Mission List > Filter Bar', () => {
})

it('Should filter missions for the current month', () => {
const currentDay = encodeURIComponent(customDayjs().utc().subtract(1, 'month').startOf('day').toISOString())
const currentDay = encodeURIComponent(customDayjs().utc().startOf('month').toISOString())
cy.intercept('GET', `/bff/v1/missions?&startedAfterDateTime=${currentDay}*`).as('getMissions')

cy.fill('Période', 'Un mois')
Expand Down

0 comments on commit f91e51d

Please sign in to comment.