Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix flaky 'models.cy.spec.js' test (#65690)

Mahatthana (Kelvin) Nomsawadi13e92995df41
diff --git a/e2e/test/scenarios/models/models.cy.spec.js b/e2e/test/scenarios/models/models.cy.spec.js
index 75ea30f5726..7a980a8d9ae 100644
--- a/e2e/test/scenarios/models/models.cy.spec.js
+++ b/e2e/test/scenarios/models/models.cy.spec.js
@@ -464,7 +464,12 @@ describe("scenarios > models", () => {
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy.findByText("Save").click();
- cy.findByTestId("save-question-modal").within((modal) => {
+ cy.findByTestId("save-question-modal").within(() => {
+ const recentDashboardName = "Orders in a dashboard";
+ cy.findByLabelText("Where do you want to save this?").should(
+ "have.text",
+ recentDashboardName,
+ );
cy.findByText("Save").click();
});