test(e2e): fix events flakiness (#7829)

This commit is contained in:
Elio Bischof
2024-04-23 09:20:11 +02:00
committed by GitHub
parent 66d185d74d
commit 42bd636d21
2 changed files with 7 additions and 2 deletions

View File

@@ -9,9 +9,12 @@ describe('events', () => {
cy.get('[data-e2e="event-type-cell"]').should('have.length', 20);
cy.get('[data-e2e="open-filter-button"]').click();
cy.get('[data-e2e="event-type-filter-checkbox"]').click();
cy.get('mat-select[name="eventTypesList"]').click();
cy.contains('mat-option', eventTypeEnglish).click();
cy.get('body').type('{esc}');
cy.contains('mat-select', 'Descending').click();
cy.contains('mat-option', 'Ascending').click();
cy.contains('mat-option', 'Descending').click();
cy.get('[data-e2e="filter-finish-button"]').click();
cy.contains('[data-e2e="event-type-cell"]', eventTypeEnglish).should('have.length.at.least', 1);
cy.contains('[data-e2e="event-type-cell"]', eventTypeEnglish).should('have.length', 1);
});
});