diff --git a/e2e/support/helpers/e2e-dashboard-helpers.ts b/e2e/support/helpers/e2e-dashboard-helpers.ts index 5f52930e5bdac49070e94d7cbbfb5276930cbd54..0c19c67506d67faa4913edcd4867a75e4f92f4a9 100644 --- a/e2e/support/helpers/e2e-dashboard-helpers.ts +++ b/e2e/support/helpers/e2e-dashboard-helpers.ts @@ -84,11 +84,15 @@ export function saveDashboard({ waitMs = 1, awaitRequest = true, } = {}) { - cy.intercept("PUT", "/api/dashboard/*").as("saveDashboardCards"); + cy.intercept("PUT", "/api/dashboard/*").as( + "saveDashboard-saveDashboardCards", + ); + cy.intercept("GET", "/api/dashboard/*").as("saveDashboard-getDashboard"); cy.button(buttonLabel).click(); if (awaitRequest) { - cy.wait("@saveDashboardCards"); + cy.wait("@saveDashboard-saveDashboardCards"); + cy.wait("@saveDashboard-getDashboard"); } cy.findByText(editBarText).should("not.exist"); 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 fd926e4803e22671261bf30b2a538d12f302e3bc..63a895f156d245c929d1d1e44899b0fcc80a03c7 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 @@ -693,9 +693,7 @@ 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(() => {