From 4c1f2db7aeaca3f242e0d633b2890babe8e1c5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 24 Nov 2022 18:40:10 +0100 Subject: [PATCH] Fix cypress error --- .../mon-entreprise/english/status.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/site/cypress/integration/mon-entreprise/english/status.ts b/site/cypress/integration/mon-entreprise/english/status.ts index d0c022a32..428cdf4dc 100644 --- a/site/cypress/integration/mon-entreprise/english/status.ts +++ b/site/cypress/integration/mon-entreprise/english/status.ts @@ -7,23 +7,18 @@ describe('Status guide', function () { }) it('should allow to go back clicking on the previous answers', function () { - cy.get('button') - .contains(fr ? 'Seul' : 'Alone') - .click() + cy.contains('button', fr ? 'Seul' : 'Alone').click() cy.contains(fr ? 'Un seul associé' : 'Only one partner').click() cy.contains(fr ? 'Seul ou à plusieurs' : 'Number of partners') }) it('should guide thought the SASU status', function () { - cy.get('button') - .contains(fr ? 'Seul' : 'Alone') - .click() - cy.get('button') - .contains(fr ? 'Société' : 'Limited liability company') - .click() + cy.contains('button', fr ? 'Seul' : 'Alone').click() - cy.get('button').contains('Assimilé').click() - cy.contains(fr ? 'Créer une SASU' : 'Create a SASU').click() + cy.contains('button', fr ? 'Société' : 'Limited liability company').click() + + cy.contains('button', 'Assimilé').click() + cy.contains('a', fr ? 'Créer une SASU' : 'Create a SASU').click() cy.url().should('match', /\/SASU$/) }) })