Skip to content

Commit

Permalink
10 sec timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp committed Jun 26, 2024
1 parent eec02d4 commit 8f028c6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions cypress/e2e/espace-agent.cy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
describe(
'Espace agent',
{
defaultCommandTimeout: 60000, // 2min because AgentConnect testing env is veeeery slow
pageLoadTimeout: 180000, // 3min
defaultCommandTimeout: 10000, // 10 sec
pageLoadTimeout: 180000, // 3min because AgentConnect testing env is veeeery slow
testIsolation: false, // We need to share session cookies between tests
retries: {
runMode: 2,
Expand Down Expand Up @@ -33,17 +33,9 @@ describe(
cy.contains('button', 'AgentConnect').click();
cy.origin('fca.integ01.dev-agentconnect.fr', () => {
cy.get('input[type="email"]').clear().type('[email protected]');
if (Cypress.currentRetry === 1) {
cy.screenshot('before_click');
}

cy.contains('button', 'Se connecter').click();
if (Cypress.currentRetry === 1) {
cy.screenshot('after_click');
}
});
if (Cypress.currentRetry === 1) {
cy.screenshot('after_connection');
}

cy.origin('app-sandbox.moncomptepro.beta.gouv.fr', () => {
cy.contains('Renseignez votre mot de passe');
Expand Down

0 comments on commit 8f028c6

Please sign in to comment.