Skip to content

Commit

Permalink
added additional awaiting constructs for archive tests to work correc…
Browse files Browse the repository at this point in the history
…tly on slow machines
  • Loading branch information
Fellan-91 committed Aug 21, 2024
1 parent 826695b commit d8df650
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/e2e/specs/archive.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,19 @@ test.describe('archive pages', () => {
while (currentCount < pageCounts) {
const archivePagination = [];

await page.waitForTimeout(700);
await page.waitForTimeout(1000);

const archiveItems = await getArchiveItems(page);

const pagination = page.locator(
await page.waitForTimeout(1000);

const pagination = await page.locator(
'.vp-portfolio__layout-elements .vp-pagination'
);

const paginationItems = pagination.locator('.vp-pagination__item');
const paginationItems = await pagination.locator(
'.vp-pagination__item'
);

for (const paginationItem of await paginationItems.all()) {
const classes = await paginationItem.getAttribute('class');
Expand Down

0 comments on commit d8df650

Please sign in to comment.