Fix cypress

pull/2573/head
Jérémy Rialland 2023-04-28 19:42:58 +02:00 committed by Jérémy Rialland
parent cb05eedb69
commit 7fc261becf
4 changed files with 9 additions and 9 deletions

View File

@ -135,9 +135,9 @@ describe(
cy.focused().tab().type('you@ajido.com').tab().type('+94655487015')
cy.contains("Dans le pays d'accueil").click()
cy.focused().tab().type('{downarrow}{downarrow}')
cy.focused().tab().type('{downarrow}')
cy.focused().tab().type('{downarrow}{downarrow}')
cy.focused().tab().focused().tab().type('{downarrow}')
cy.focused().tab().type('{downarrow}')
cy.focused().tab().type('{downarrow}')
cy.focused().tab().type('{downarrow}')

View File

@ -82,7 +82,7 @@ describe(`Navigation to income simulator using company name (${
.parentsUntil('li')
.find('button')
.click()
cy.contains('Lancer le simulateur').click()
cy.contains(fr ? 'Lancer le simulateur' : 'Launch the simulator').click()
cy.location().should((loc) => {
expect(loc.pathname).to.match(/sasu$/)
})
@ -111,7 +111,7 @@ describe(`Navigation to income simulator using company name (${
// ask if auto-entrepreneur
cy.contains(fr ? 'auto-entrepreneur' : 'auto-entrepreneur')
cy.contains(fr ? 'Oui' : 'Yes').click()
cy.contains('Lancer le simulateur').click()
cy.contains(fr ? 'Lancer le simulateur' : 'Launch the simulator').click()
cy.location().should((loc) => {
expect(loc.pathname).to.match(/auto-entrepreneur$/)
})

View File

@ -93,10 +93,10 @@ describe('Test prerender', function () {
cy.contains('I would like to start my own business')
cy.contains('a', 'Employee')
cy.contains('a', 'Auto-entrepreneur')
cy.contains('a', 'Status Comparison')
cy.contains('a', 'Discover all the simulators and assistants')
cy.contains('Employee')
cy.contains('Auto-entrepreneur')
cy.contains('Status Comparison')
cy.contains('Discover all the simulators and assistants')
},
},
{

View File

@ -30,7 +30,7 @@ describe('Partage (simulateur salarié)', function () {
cy.visit(simulatorUrl)
cy.get(brutInputSelector).first().type('{selectall}1539')
cy.contains('De quel type de contrat').should('be.visible')
cy.get('label').contains('CDD').should('be.visible').click()
cy.get('label').contains('CDD').should('be.visible').click('left')
cy.get('button').contains('Suivant').should('be.visible')
cy.contains('Générer un lien').click()
cy.get('input[aria-label="URL de votre simulation"]')