diff --git a/frontend/cypress/e2e/overview.cy.ts b/frontend/cypress/e2e/overview.cy.ts index a8515217f4..769e11deec 100644 --- a/frontend/cypress/e2e/overview.cy.ts +++ b/frontend/cypress/e2e/overview.cy.ts @@ -1,15 +1,13 @@ import * as users from '../fixtures/users.json'; +import FilterHelper from '../support/helper/pom-helper/filterHelper'; describe('OKR Overview', () => { beforeEach(() => { cy.loginAsUser(users.gl); }); - it('Check order of teams', () => { - cy.intercept('GET', '**/overview*').as('overview'); - - cy.get('mat-chip:visible:contains("Alle")').click(); - cy.wait('@overview'); + it.only('Check order of teams', () => { + FilterHelper.do().toggleOption('Alle'); const textsExpectedOrder = ['LoremIpsum', 'Puzzle ITC', '/BBT', 'we are cube.³']; cy.get('.team-title').then((elements) => { const texts: string[] = elements.map((_, el) => Cypress.$(el).text()).get();