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:
Elio Bischof
2023-04-05 19:56:11 +02:00
committed by GitHub
parent 5c8748d769
commit 29c0adb650
4 changed files with 36 additions and 9 deletions

View 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);
});
});