Skip to content

Commit

Permalink
Use filter helper in overview test
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Nov 15, 2024
1 parent 2c882eb commit bf5c6a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/cypress/e2e/overview.cy.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit bf5c6a7

Please sign in to comment.