Skip to content
Snippets Groups Projects
Unverified Commit 752bf845 authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

Add missing tests for user-level filter state in dashboards (#42826)


* Add missing tests for user-level filter state in dashboards

* Update e2e/test/scenarios/dashboard-filters/dashboard-filters-auto-apply.cy.spec.js

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>

---------

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>
parent 5ac502a5
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,23 @@ describe(
});
});
it("should not save filter state for dashboard parameter w/o auto-apply enabled", () => {
createDashboard({ dashboardDetails: { auto_apply_filters: false } });
openDashboard();
filterWidget().findByText(FILTER.name).click();
popover().within(() => {
cy.findByText("Gadget").click();
cy.button("Add filter").click();
});
dashboardParametersContainer().button("Apply").should("be.visible");
cy.log("verify filter value is not saved");
visitDashboard("@dashboardId");
filterWidget().should("not.contain", "Gadget");
});
describe("modifying dashboard and dashboard cards", () => {
it("should not preserve draft parameter values when editing the dashboard", () => {
createDashboard({ dashboardDetails: { auto_apply_filters: false } });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment