From e90e7ececc06674d31516f8f25e29708d9ec0e2d Mon Sep 17 00:00:00 2001 From: Jannik Pulfer Date: Tue, 19 Nov 2024 15:04:33 +0100 Subject: [PATCH] Add check if objective was duplicated successfully before navigating in duplicated scoring tests --- frontend/cypress/e2e/duplicated-scoring.cy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/cypress/e2e/duplicated-scoring.cy.ts b/frontend/cypress/e2e/duplicated-scoring.cy.ts index b8835b773b..8719797855 100644 --- a/frontend/cypress/e2e/duplicated-scoring.cy.ts +++ b/frontend/cypress/e2e/duplicated-scoring.cy.ts @@ -35,6 +35,9 @@ describe('e2e test for scoring adjustment on objective duplicate', () => { .fillObjectiveTitle('A duplicated Objective for this tool') .selectQuarter('3') .submit(); + + op.checkForToaster('Das Objective wurde erfolgreich erstellt.', 'success'); + cy.visit('/?quarter=3'); op.getKeyResultByName('stretch keyresult for testing')