Skip to content

Commit 09966b3

Browse files
authored
Avoid the usage of metabase-sdk-root selector in tests (#25)
1 parent 44fb50b commit 09966b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

e2e/test/compatibility.cy.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const TIMEOUT_MS = 40000;
4040
url: "/static-dashboard",
4141
});
4242

43-
sdkRoot().should("exist");
44-
sdkRoot().within(() => {
43+
main().should("exist");
44+
main().within(() => {
4545
cy.findByRole("heading", { name: "Static Dashboard Example" }).should(
4646
"exist",
4747
);
@@ -62,8 +62,8 @@ const TIMEOUT_MS = 40000;
6262
url: "/interactive-dashboard",
6363
});
6464

65-
sdkRoot().should("exist");
66-
sdkRoot().within(() => {
65+
main().should("exist");
66+
main().within(() => {
6767
cy.findByRole("heading", {
6868
name: "Interactive Dashboard Example",
6969
}).should("exist");
@@ -81,6 +81,6 @@ const TIMEOUT_MS = 40000;
8181
});
8282
});
8383

84-
function sdkRoot() {
85-
return cy.get("#metabase-sdk-root", { timeout: TIMEOUT_MS });
84+
function main() {
85+
return cy.get("main", { timeout: TIMEOUT_MS });
8686
}

0 commit comments

Comments
 (0)