From 42bd636d21b992c79edbd5db91f257a70c72ca09 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Tue, 23 Apr 2024 09:20:11 +0200 Subject: [PATCH] test(e2e): fix events flakiness (#7829) --- e2e/cypress/e2e/events/events.cy.ts | 7 +++++-- internal/integration/config/zitadel.yaml | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/e2e/cypress/e2e/events/events.cy.ts b/e2e/cypress/e2e/events/events.cy.ts index f7800000e0..8c27f607d3 100644 --- a/e2e/cypress/e2e/events/events.cy.ts +++ b/e2e/cypress/e2e/events/events.cy.ts @@ -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); }); }); diff --git a/internal/integration/config/zitadel.yaml b/internal/integration/config/zitadel.yaml index 707cf180f1..291099ea1c 100644 --- a/internal/integration/config/zitadel.yaml +++ b/internal/integration/config/zitadel.yaml @@ -49,6 +49,8 @@ SystemAPIUsers: - "SYSTEM_OWNER" - "IAM_OWNER" - "ORG_OWNER" + - cypress: + KeyData: "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF6aStGRlNKTDdmNXl3NEtUd3pnTQpQMzRlUEd5Y20vTStrVDBNN1Y0Q2d4NVYzRWFESXZUUUtUTGZCYUVCNDV6YjlMdGpJWHpEdzByWFJvUzJoTzZ0CmgrQ1lRQ3ozS0N2aDA5QzBJenhaaUIySVMzSC9hVCs1Qng5RUZZK3ZuQWtaamNjYnlHNVlOUnZtdE9sbnZJZUkKSDdxWjB0RXdrUGZGNUdFWk5QSlB0bXkzVUdWN2lvZmRWUVMxeFJqNzMrYU13NXJ2SDREOElkeWlBQzNWZWtJYgpwdDBWajBTVVgzRHdLdG9nMzM3QnpUaVBrM2FYUkYwc2JGaFFvcWRKUkk4TnFnWmpDd2pxOXlmSTV0eXhZc3duCitKR3pIR2RIdlczaWRPRGxtd0V0NUsycGFzaVJJV0syT0dmcSt3MEVjbHRRSGFidXFFUGdabG1oQ2tSZE5maXgKQndJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==" InitProjections: Enabled: true \ No newline at end of file