diff --git a/e2e/test/scenarios/custom-column/cc-boolean-functions.cy.spec.ts b/e2e/test/scenarios/custom-column/cc-boolean-functions.cy.spec.ts index 977bd95c586b7b3474c7b46bde9c08c0b5b05215..fd926e4803e22671261bf30b2a538d12f302e3bc 100644 --- a/e2e/test/scenarios/custom-column/cc-boolean-functions.cy.spec.ts +++ b/e2e/test/scenarios/custom-column/cc-boolean-functions.cy.spec.ts @@ -4,6 +4,7 @@ import { type StructuredQuestionDetails, assertQueryBuilderRowCount, assertTableData, + changeSynchronousBatchUpdateSetting, createDashboard, createQuestion, editDashboard, @@ -625,6 +626,17 @@ describe("scenarios > custom column > boolean functions", () => { ); } + beforeEach(() => { + cy.signInAsAdmin(); + changeSynchronousBatchUpdateSetting(true); + cy.signInAsNormalUser(); + }); + + afterEach(() => { + cy.signInAsAdmin(); + changeSynchronousBatchUpdateSetting(false); + }); + it("should be able setup an 'open question' click behavior", () => { createDashboardWithQuestion().then(dashboard => visitDashboard(dashboard.id), @@ -681,7 +693,9 @@ describe("scenarios > custom column > boolean functions", () => { .findByText(parameterDetails.name) .click(); popover().findByText(expressionName).click(); + cy.intercept("GET", "/api/dashboard/*").as("getDashboard"); saveDashboard(); + cy.wait("@getDashboard"); cy.log("verify click behavior"); getDashboardCard().within(() => {