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 test in sidebar content (#71135)

Romeo Van Snickfb38572a8c60
diff --git a/e2e/test/scenarios/native/native-reproductions.cy.spec.ts b/e2e/test/scenarios/native/native-reproductions.cy.spec.ts
index 96aaea2b970..147bbf41f08 100644
--- a/e2e/test/scenarios/native/native-reproductions.cy.spec.ts
+++ b/e2e/test/scenarios/native/native-reproductions.cy.spec.ts
@@ -335,13 +335,23 @@ describe("issue 54124", () => {
it("should be possible to close the data reference sidebar (metabase#54124)", () => {
H.startNewNativeQuestion();
+ cy.findByTestId("sidebar-content")
+ .should("be.visible")
+ .icon("close")
+ .click();
+
cy.get("@questionId").then((questionId) => {
- H.NativeEditor.type(
- `{{#${questionId}-reference-question }}{leftarrow}{leftarrow}{leftarrow}`,
- );
+ H.NativeEditor.type(`{{#${questionId}-reference-question }}`, {
+ allowFastSet: true,
+ });
});
+ H.NativeEditor.type("{leftarrow}{leftarrow}{leftarrow}");
+
+ cy.findByTestId("sidebar-content")
+ .should("be.visible")
+ .icon("close")
+ .click();
- cy.findByTestId("sidebar-content").icon("close").click();
cy.findByTestId("sidebar-content").should("not.exist");
cy.log("moving cursor should open the reference sidebar again");