From 067f2af3e5ea836171f1316907cb8f3b01cc18c9 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 26 May 2023 16:15:39 +0200 Subject: [PATCH] Wait for success, then screenshot --- cypress/e2e/1-install.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/1-install.cy.js b/cypress/e2e/1-install.cy.js index d034a52e..84a8f51b 100644 --- a/cypress/e2e/1-install.cy.js +++ b/cypress/e2e/1-install.cy.js @@ -68,7 +68,7 @@ describe('Install MyAAC', () => { cy.get('form').submit() - cy.wait(1000); + cy.contains('[class="alert alert-success"]', 'Congratulations', { timeout: 30000 }).should('be.visible') cy.screenshot('install-finish') })