Skip to content

Commit

Permalink
wait and verify one-by-one (#5995)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and Grace Guo committed Sep 27, 2018
1 parent 2cd9407 commit 4868c00
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 4868c00

Please sign in to comment.