The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Wait for timeline to refresh before clicking the checkbox (#64984)
Mahatthana (Kelvin) Nomsawadidb9c8dcfbf6d
diff --git a/e2e/test/scenarios/organization/timelines-question.cy.spec.js b/e2e/test/scenarios/organization/timelines-question.cy.spec.jsindex 59e0061bcf6..238ce0ffcbd 100644--- a/e2e/test/scenarios/organization/timelines-question.cy.spec.js+++ b/e2e/test/scenarios/organization/timelines-question.cy.spec.js@@ -338,7 +338,7 @@ describe("scenarios > organization > timelines > question", () => {cy.findByLabelText("Event name").type("RC2");cy.findByLabelText("Date").clear().type("10/20/2023");cy.button("Create").click();- cy.wait("@createEvent");+ waitForTimelinesAfterCreatingAnEvent("RC2");H.undoToast().icon("close").click();H.echartsIcon("star").should("be.visible");@@ -413,6 +413,7 @@ describe("scenarios > organization > timelines > question", () => {cy.button("Create").click();});+ waitForTimelinesAfterCreatingAnEvent("Event at the end of range");H.modal().should("not.exist"); // wait for modal to close@@ -591,3 +592,9 @@ function toggleEventVisibility(eventName) {function timelineEventVisibility(eventName) {return timelineEventCard(eventName).findByRole("checkbox");}++function waitForTimelinesAfterCreatingAnEvent(eventName) {+ return timelineEventCard(eventName)+ .findByText(/^Bobby Tables added this on/)+ .should("be.visible");+}