Skip to content

Commit

Permalink
Wait longer for concent page
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-robots committed Oct 8, 2023
1 parent 5eb8ab3 commit 5f59630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/end-to-end/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
projectId: 'wzcbom',
defaultCommandTimeout: 90 * 1000,
defaultCommandTimeout: 5 * 1000,
video: true,
env: {
'cypress-react-selector': {
Expand Down
3 changes: 1 addition & 2 deletions packages/end-to-end/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ Cypress.Commands.add('onboardCompleteQuestions', (role) => {
// });

// Give Concent
cy.log('giveConsent');
cy.url().should('include', '/consent');
cy.get('[data-cy=consentPage-content]').should('exist');
cy.get('[data-cy=consentPage-content]', { timeout: 120 * 1000 }).should('exist');
cy.get('[data-cy=consent-continue]').should('exist').and('be.disabled');
cy.get('[data-cy=checkbox-component]').should('exist').click();
cy.get('[data-cy=consent-continue]').should('not.be.disabled').click();
Expand Down

0 comments on commit 5f59630

Please sign in to comment.