Skip to content

Commit

Permalink
test: fix flaky onboarding e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Nov 20, 2023
1 parent d5077f0 commit 91570ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/specs/intro.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ describe('Onboarding', () => {
openRoot();

cy.get('[data-cy="onboarding"]').click();
cy.get('img').then(($el) => $el.get(0).complete).should('equal', true);
cy.get('img').should(($img) => expect($img[0].naturalWidth).to.be.greaterThan(0));
cy.matchImage();

cy.get('.ae-button[href="/"]');
for (let i = 0; i < 3; i += 1) {
cy.get('[data-cy="next"]').click();
cy.get('img').then(($el) => $el.get(0).complete).should('equal', true);
cy.get('img').should(($img) => expect($img[0].naturalWidth).to.be.greaterThan(0));
ensureAnimationOver();
cy.matchImage();
}
Expand Down

0 comments on commit 91570ac

Please sign in to comment.