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 e2e test (#63128)

Alexander Polyankin9be149e22fe9
diff --git a/e2e/test/scenarios/native/native-reproductions.cy.spec.ts b/e2e/test/scenarios/native/native-reproductions.cy.spec.ts
index 4b8eac05d44..f7605789de4 100644
--- a/e2e/test/scenarios/native/native-reproductions.cy.spec.ts
+++ b/e2e/test/scenarios/native/native-reproductions.cy.spec.ts
@@ -396,19 +396,16 @@ describe("issue 52806", () => {
cy.signInAsNormalUser();
});
- it(
- "should remove parameter values from the URL when leaving the query builder and discarding changes (metabase#52806)",
- { tags: "@flaky" },
- () => {
- cy.visit("/");
- H.newButton("SQL query").click();
- H.NativeEditor.focus().type("select {{x}}");
- cy.findByTestId("main-logo-link").click();
- H.modal().button("Discard changes").click();
- cy.findByTestId("home-page");
- cy.location().should((location) => expect(location.search).to.eq(""));
- },
- );
+ it("should remove parameter values from the URL when leaving the query builder and discarding changes (metabase#52806)", () => {
+ cy.visit("/");
+ H.newButton("SQL query").click();
+ H.NativeEditor.focus().type("select {{x}}");
+ cy.location().should((location) => expect(location.search).to.eq("?x="));
+ cy.findByTestId("main-logo-link").click();
+ H.modal().button("Discard changes").click();
+ cy.findByTestId("home-page");
+ cy.location().should((location) => expect(location.search).to.eq(""));
+ });
});
describe("issue 55951", () => {