Skip to content

Commit

Permalink
Add expectation to overview test, to wait for teams to load
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Nov 15, 2024
1 parent 9265d21 commit 95e9e91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/cypress/e2e/overview.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95e9e91

Please sign in to comment.