Show toolbar when filtering events results in an empty list (#1633)

This commit is contained in:
Jon Koops 2021-12-07 17:27:48 +01:00 committed by GitHub
parent 51d8038a5c
commit d493aa69ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -66,7 +66,7 @@ export default class AdminEventsTab {
cy.findByTestId(this.searchAdminEventDrpDwnBtn).click();
cy.findByTestId(this.resourcePathInputFld).type("events/test");
cy.findByTestId(this.searchEventsBtn).click();
cy.get(this.adminEventsTabTitle).contains("No events logged");
cy.get(this.adminEventsTabTitle).contains("No search results");
}
shouldCheckAuthDialogOpensAndIsNotEmpty() {

View file

@ -68,6 +68,6 @@ export default class UserEventsTab {
cy.findByTestId(this.searchEventDrpDwnBtn).click();
cy.findByTestId(this.userIdInputFld).type("test");
cy.findByTestId(this.searchEventsBtn).click();
cy.get(this.userEventsTabTitle).contains("No events logged");
cy.get(this.userEventsTabTitle).contains("No search results");
}
}

View file

@ -629,6 +629,7 @@ export const AdminEvents = () => {
instructions={t("emptyEventsInstructions")}
/>
}
isSearching={Object.keys(activeFilters).length > 0}
/>
</>
);

View file

@ -468,6 +468,7 @@ export default function EventsSection() {
instructions={t("emptyEventsInstructions")}
/>
}
isSearching={Object.keys(activeFilters).length > 0}
/>
</div>
</Tab>