Skip to content

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

Deflake transform revision history spec (#78272)

github-automation-metabasefdace56d226d
diff --git a/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts b/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts
index 7629b344b3d..b0476f79ef0 100644
--- a/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts
+++ b/e2e/test/scenarios/data-studio/transforms/transforms.cy.spec.ts
@@ -2670,6 +2670,13 @@ LIMIT
.blur();
cy.wait("@updateTransform");
+ cy.log(
+ "Dismiss the success toast so it can't outlive the later error toast",
+ );
+ H.undoToast().findByText("Transform name updated").should("be.visible");
+ H.undoToast().icon("close").click();
+ H.undoToast().should("not.exist");
+
cy.log("Make another change");
H.DataStudio.Transforms.header()
.findByPlaceholderText("Name")
@@ -2678,6 +2685,13 @@ LIMIT
.blur();
cy.wait("@updateTransform");
+ cy.log(
+ "Dismiss the success toast so it can't outlive the later error toast",
+ );
+ H.undoToast().findByText("Transform name updated").should("be.visible");
+ H.undoToast().icon("close").click();
+ H.undoToast().should("not.exist");
+
cy.log("Open revision history");
H.DataStudio.Transforms.header().icon("ellipsis").click();
H.popover().findByText("History").click();