Skip to content
Snippets Groups Projects
Unverified Commit 07f4a5ac authored by github-automation-metabase's avatar github-automation-metabase Committed by GitHub
Browse files

Fix flaky test (#50077) (#50125)

parent 3c0651a9
No related branches found
No related tags found
No related merge requests found
import { import {
changeSynchronousBatchUpdateSetting,
clearFilterWidget, clearFilterWidget,
editDashboard, editDashboard,
restore, restore,
...@@ -43,6 +44,7 @@ describe("scenarios > dashboard > filters > SQL > simple filter > required ", () ...@@ -43,6 +44,7 @@ describe("scenarios > dashboard > filters > SQL > simple filter > required ", ()
beforeEach(() => { beforeEach(() => {
restore(); restore();
cy.signInAsAdmin(); cy.signInAsAdmin();
changeSynchronousBatchUpdateSetting(true);
cy.createNativeQuestionAndDashboard({ cy.createNativeQuestionAndDashboard({
questionDetails, questionDetails,
...@@ -66,6 +68,10 @@ describe("scenarios > dashboard > filters > SQL > simple filter > required ", () ...@@ -66,6 +68,10 @@ describe("scenarios > dashboard > filters > SQL > simple filter > required ", ()
}); });
}); });
afterEach(() => {
changeSynchronousBatchUpdateSetting(false);
});
it("should respect default filter precedence while properly updating the url for each step of the flow", () => { it("should respect default filter precedence while properly updating the url for each step of the flow", () => {
// Default dashboard filter // Default dashboard filter
cy.location("search").should("eq", "?text=Bar"); cy.location("search").should("eq", "?text=Bar");
......
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