mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +00:00
fix: ignore 0 retention on event search (#5614)
* fix: filter all search events if retention * test(e2e): test event api filter
This commit is contained in:
18
e2e/cypress/e2e/events/events.cy.ts
Normal file
18
e2e/cypress/e2e/events/events.cy.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
describe('events', () => {
|
||||
beforeEach(() => {
|
||||
cy.context().as('ctx');
|
||||
});
|
||||
|
||||
it('events can be filtered', () => {
|
||||
const eventTypeEnglish = 'Instance added';
|
||||
cy.visit('/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-value-1').click();
|
||||
cy.contains('mat-option', eventTypeEnglish).click();
|
||||
cy.get('body').click();
|
||||
cy.get('[data-e2e="filter-finish-button"]').click();
|
||||
cy.contains('[data-e2e="event-type-cell"]', eventTypeEnglish).should('have.length.at.least', 1);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user