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

Models E2E tests: ensure query and table view before assertions (#21151)

parent c950e502
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ describe("scenarios > models metadata", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
cy.intercept("POST", "/api/card/*/query").as("cardQuery");
});
it("should edit GUI model metadata", () => {
......@@ -42,7 +43,10 @@ describe("scenarios > models metadata", () => {
);
cy.findByText("Customize metadata").click();
cy.wait(["@cardQuery", "@cardQuery"]);
cy.url().should("include", "/metadata");
cy.findByTextEnsureVisible("Product ID");
openColumnOptions("Subtotal");
......@@ -83,7 +87,10 @@ describe("scenarios > models metadata", () => {
);
cy.findByText("Customize metadata").click();
cy.wait(["@cardQuery", "@cardQuery"]);
cy.url().should("include", "/metadata");
cy.findByTextEnsureVisible("PRODUCT_ID");
openColumnOptions("SUBTOTAL");
......@@ -112,6 +119,8 @@ describe("scenarios > models metadata", () => {
},
}).then(({ body: { id: nativeModelId } }) => {
cy.visit(`/model/${nativeModelId}/metadata`);
cy.wait("@cardQuery");
cy.findByTextEnsureVisible("PRODUCT_ID");
});
openColumnOptions("SUBTOTAL");
......@@ -125,6 +134,9 @@ describe("scenarios > models metadata", () => {
openDetailsSidebar();
cy.findByText("Customize metadata").click();
cy.wait(["@cardQuery", "@cardQuery"]);
cy.findByTextEnsureVisible("TAX");
// Revision 2
openColumnOptions("TAX");
mapColumnTo({ table: "Orders", column: "Tax" });
......
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