Skip to content
Snippets Groups Projects
Unverified Commit 1923709c authored by Kamil Mielnik's avatar Kamil Mielnik Committed by GitHub
Browse files

Fix flaky custom column test (#49476)

* Fix flaky custom column test

* Fix flaky custom column test
parent 4162c2f0
No related branches found
No related tags found
No related merge requests found
......@@ -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(() => {
......
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