From 285e91496110bf1fbe397a7867f6e01b76b040cd Mon Sep 17 00:00:00 2001 From: juliebrunetto83 <122871677+juliebrunetto83@users.noreply.github.com> Date: Thu, 23 Nov 2023 09:32:36 +0100 Subject: [PATCH] test(stage et cej): correction de test flaky (#2351) --- cypress/e2e/formulaire_cej.cy.ts | 4 +++- cypress/e2e/formulaire_depot_stage.cy.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/formulaire_cej.cy.ts b/cypress/e2e/formulaire_cej.cy.ts index dd929fb779..024926604a 100644 --- a/cypress/e2e/formulaire_cej.cy.ts +++ b/cypress/e2e/formulaire_cej.cy.ts @@ -26,7 +26,9 @@ describe('Parcours formulaire cej', () => { cy.findByRole('textbox', { name: /Prénom/i }).should('have.focus'); cy.findByRole('textbox', { name: /Prénom/i }).type('jean'); - cy.findByRole('textbox', { name: /^Nom/i }).type('dupont'); + // FIXME (BRUJ 22/11/2023): test flaky obligé de rajouter un .click() + cy.findByRole('textbox', { name: /Nom/ }).click(); + cy.findByRole('textbox', { name: /Nom/ }).type('dupont'); cy.findByRole('textbox', { name: /Adresse email/i }).type('jean.dupont@mail.com'); cy.findByRole('textbox', { name: /Téléphone/i }).type('0688552233'); // FIXME (GAFI 23-10-2023): Manque un circonflèxe par ici ... diff --git a/cypress/e2e/formulaire_depot_stage.cy.ts b/cypress/e2e/formulaire_depot_stage.cy.ts index 3fa513286b..339b928191 100644 --- a/cypress/e2e/formulaire_depot_stage.cy.ts +++ b/cypress/e2e/formulaire_depot_stage.cy.ts @@ -113,8 +113,8 @@ describe('Dépôt de Stage', () => { }); // FIXME (GAFI 06-11-2023): Devrait être combobox - // Also besoin de type 2x parce que la lib est cassée - cy.findByRole('textbox', { name: /Pays/i }).type('France'); + // NOTE (BRUJ 22/11/2023): test flaky obligé de rajouter un click en amont + cy.findByRole('textbox', { name: /Pays/ }).click(); cy.findByRole('textbox', { name: /Pays/i }).type('France'); cy.findAllByRole('option').first().click(); cy.findByRole('textbox', { name: /Ville/i }).type(aFormulaireEtapeLocalisation().ville);