Skip to content

Commit

Permalink
test(e2e): fix campaign test
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed Nov 13, 2024
1 parent 4c22d48 commit 3948542
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions e2e/cypress/e2e/campaign.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,19 @@ describe('Campaign', () => {
.should('be.visible');

cy.get('a')
.contains(/^Télécharger les courriers/, { timeout: 10_000 })
.should('be.visible');
.contains(/^Télécharger les destinataires et vos courriers/, {
timeout: 10_000
})
// Avoid opening a new tab which would break the test
.invoke('removeAttr', 'href')
.click();

cy.get('label')
.contains(/^Date denvoi de votre campagne/)
.type(new Date().toJSON().slice(0, 'yyyy-mm-dd'.length));

cy.get('button')
.contains(/^Confirmer et passer au suivi/)
.contains(/^Valider la date denvoi de votre campagne/)
.click();

cy.get('dialog[open="true"]')
Expand Down

0 comments on commit 3948542

Please sign in to comment.