Skip to content
Snippets Groups Projects
Unverified Commit d9570070 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

wait for network requests to avoid race condition in bulk table test (#12638)

parent 1e08d80e
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,10 @@ describe("scenarios > admin > datamodel > table", () => {
});
it("should allow bulk hiding tables", () => {
cy.route("GET", `**/api/table/*/query_metadata*`).as("tableMetadata");
cy.visit(ORDERS_URL);
cy.wait(["@tableMetadata", "@tableMetadata", "@tableMetadata"]); // wait for these api calls to finish to avoid them overwriting later PUT calls
cy.contains("4 Queryable Tables");
cy.get(".AdminList-section .Icon-eye_crossed_out").click();
cy.contains("4 Hidden Tables");
......
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