Skip to content

Commit

Permalink
test: ensure that image loaded before making Onboarding screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 24, 2023
1 parent 3433cb1 commit 46c1ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/e2e/specs/intro.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ describe('Onboarding', () => {
openRoot();

cy.get('[data-cy="onboarding"]').click();
cy.get('img').then(($el) => $el.get(0).complete).should('equal', true);
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);
ensureAnimationOver();
cy.matchImage();
}
Expand Down

0 comments on commit 46c1ef1

Please sign in to comment.