Skip to content

Commit

Permalink
fix: Adds an exists condition to cypress test to ensure app is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatthieu authored and a60915 committed Jun 12, 2024
1 parent df1406b commit 6d465b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/mobile.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Mobile UI', () => {
describe('Infinite Scroll', () => {
it('should load more items when scrolling to the bottom of the page', () => {
ListPagePosts.navigate();
cy.contains('Sint dignissimos in architecto aut');
cy.contains('Fusce massa lorem').should('exist');
cy.contains('Sed quo et et fugiat modi').should('not.exist');
cy.wait(500);
cy.contains('Sint dignissimos in architecto aut').scrollIntoView();
Expand Down

0 comments on commit 6d465b6

Please sign in to comment.