Skip to content

Commit ace6f40

Browse files
committed
Fix e2e tests
1 parent bd95b6e commit ace6f40

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cypress/e2e/list.cy.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ describe('List Page', () => {
4242
});
4343

4444
it('should filter directly while typing (with some debounce)', () => {
45-
ListPagePosts.setFilterValue('q', 'quis culpa impedit');
45+
ListPagePosts.setFilterValue('q', 'possimus');
4646
cy.get(ListPagePosts.elements.recordRows).should(el =>
47-
expect(el).to.have.length(1)
47+
expect(el).to.have.length(7)
4848
);
4949
cy.contains('Omnis voluptate enim similique est possimus');
50-
cy.contains('1-1 of 1');
50+
cy.contains('1-7 of 7');
5151
ListPagePosts.setFilterValue('q', '', true);
5252
cy.contains('1-10 of 13');
5353
});
@@ -80,8 +80,8 @@ describe('List Page', () => {
8080
ListPagePosts.logout();
8181
LoginPage.login('admin', 'password');
8282
ListPagePosts.navigate();
83-
ListPagePosts.setFilterValue('q', 'quis culpa impedit');
84-
cy.contains('1-1 of 1');
83+
ListPagePosts.setFilterValue('q', 'possimus');
84+
cy.contains('1-7 of 7');
8585

8686
// This validates that defaultFilterValues on the user list is
8787
// not kept for posts after navigation.
@@ -95,9 +95,9 @@ describe('List Page', () => {
9595
cy.url().should('contain', '/posts');
9696

9797
cy.get(ListPagePosts.elements.filter('q')).should(el =>
98-
expect(el).to.have.value('quis culpa impedit')
98+
expect(el).to.have.value('possimus')
9999
);
100-
cy.contains('1-1 of 1');
100+
cy.contains('1-7 of 7');
101101
ListPagePosts.setFilterValue('q', '');
102102
});
103103

0 commit comments

Comments
 (0)