Skip to content

Commit

Permalink
fix(pagination): improving e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and dpellier committed Jan 12, 2024
1 parent 7fb92e8 commit 1ef6aa4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,13 @@ describe('e2e:osds-pagination', () => {
await page.waitForChanges();

let current = Number(el.getAttribute('current'));
expect(current).toEqual(3);
expect(current).toBe(3);

allArrows[1].click();
await page.waitForChanges();

current = Number(el.getAttribute('current'));
expect(current).toEqual(3);
expect(current).toBe(3);
});

it('should not allow to go to previous page if the current page is the first one', async() => {
Expand All @@ -326,13 +326,13 @@ describe('e2e:osds-pagination', () => {
await page.waitForChanges();

let current = Number(el.getAttribute('current'));
expect(current).toEqual(1);
expect(current).toBe(1);

allArrows[0].click();
await page.waitForChanges();

current = Number(el.getAttribute('current'));
expect(current).toEqual(1);
expect(current).toBe(1);
});
});
});

0 comments on commit 1ef6aa4

Please sign in to comment.