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

Auth E2E tests: wait for the dataset to load before assertions (#21107)

parent 68e2595a
Branches
Tags
No related merge requests found
......@@ -11,6 +11,7 @@ describe("scenarios > auth > signin", () => {
beforeEach(() => {
restore();
cy.signOut();
cy.intercept("POST", "/api/dataset").as("dataset");
});
it("should redirect to /auth/login", () => {
......@@ -59,6 +60,7 @@ describe("scenarios > auth > signin", () => {
browse().click();
cy.contains("Sample Database").click();
cy.contains("Orders").click();
cy.wait("@dataset");
cy.contains("37.65");
// signout and reload page with question hash in url
......@@ -71,6 +73,7 @@ describe("scenarios > auth > signin", () => {
cy.findByText("Sign in").click();
// order table should load after login
cy.wait("@dataset");
cy.contains("37.65");
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment