Skip to content
Snippets Groups Projects
Unverified Commit 562b424a authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Joins E2E tests: ensure that the schema is completely loaded (#20067)

parent 2e894d6f
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,8 @@ describe("issue 18502", () => { ...@@ -14,6 +14,8 @@ describe("issue 18502", () => {
}); });
it("should be able to join two saved questions based on the same table (metabase#18502)", () => { it("should be able to join two saved questions based on the same table (metabase#18502)", () => {
cy.intercept("/api/database/1/schema/PUBLIC").as("schema");
cy.createQuestion(question1); cy.createQuestion(question1);
cy.createQuestion(question2); cy.createQuestion(question2);
...@@ -23,6 +25,7 @@ describe("issue 18502", () => { ...@@ -23,6 +25,7 @@ describe("issue 18502", () => {
cy.findByText("18502#1").click(); cy.findByText("18502#1").click();
cy.icon("join_left_outer").click(); cy.icon("join_left_outer").click();
cy.wait("@schema");
popover().within(() => { popover().within(() => {
cy.findByTextEnsureVisible("Sample Database").click(); cy.findByTextEnsureVisible("Sample Database").click();
......
...@@ -15,6 +15,8 @@ describe("issue 18512", () => { ...@@ -15,6 +15,8 @@ describe("issue 18512", () => {
}); });
it("should join two saved questions with the same implicit/explicit grouped field (metabase#18512)", () => { it("should join two saved questions with the same implicit/explicit grouped field (metabase#18512)", () => {
cy.intercept("/api/database/1/schema/PUBLIC").as("schema");
cy.createQuestion(question1); cy.createQuestion(question1);
cy.createQuestion(question2); cy.createQuestion(question2);
...@@ -24,6 +26,7 @@ describe("issue 18512", () => { ...@@ -24,6 +26,7 @@ describe("issue 18512", () => {
cy.findByText("18512#1").click(); cy.findByText("18512#1").click();
cy.icon("join_left_outer").click(); cy.icon("join_left_outer").click();
cy.wait("@schema");
popover().within(() => { popover().within(() => {
cy.findByTextEnsureVisible("Sample Database").click(); cy.findByTextEnsureVisible("Sample Database").click();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment