From 95e9e919b23848b78ed61414dfe2915afb5b48fe Mon Sep 17 00:00:00 2001 From: Jannik Pulfer Date: Fri, 15 Nov 2024 15:47:34 +0100 Subject: [PATCH] Add expectation to overview test, to wait for teams to load --- frontend/cypress/e2e/overview.cy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/cypress/e2e/overview.cy.ts b/frontend/cypress/e2e/overview.cy.ts index 210aadd4f6..685db5d881 100644 --- a/frontend/cypress/e2e/overview.cy.ts +++ b/frontend/cypress/e2e/overview.cy.ts @@ -14,6 +14,7 @@ describe('OKR Overview', () => { it('Check order of teams', () => { FilterHelper.do().toggleOption('Alle'); const textsExpectedOrder = ['LoremIpsum', 'Puzzle ITC', '/BBT', 'we are cube.³']; + cy.get('.team-title:contains("we are cube.³")'); cy.get('.team-title').then((elements) => { const texts: string[] = elements.map((_, el) => Cypress.$(el).text()).get(); expect(texts).to.deep.equal(textsExpectedOrder);