diff --git a/superset/assets/cypress/integration/dashboard/dashboard_tests.js b/superset/assets/cypress/integration/dashboard/dashboard_tests.js index ed2ac0851bdf9..efe6999fcf533 100644 --- a/superset/assets/cypress/integration/dashboard/dashboard_tests.js +++ b/superset/assets/cypress/integration/dashboard/dashboard_tests.js @@ -15,11 +15,9 @@ describe('Load dashboard', () => { }); // reload the dashboard again with all routes watched. cy.visit('/superset/dashboard/births'); - // wait for all requests to complete - cy.wait(aliases); - // verify one-by-one + // wait and verify one-by-one aliases.forEach((alias) => { - cy.get(alias).then((xhr) => { + cy.wait(alias).then((xhr) => { expect(xhr.status).to.eq(200); expect(xhr.response.body).to.have.property('error', null); cy.get(`#slice-container-${xhr.response.body.form_data.slice_id}`);