Skip to content

Commit

Permalink
fixed archive page selector for e2e archive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Aug 22, 2024
1 parent 6ac360a commit 03b7d99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/specs/archive.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ test.describe('archive pages', () => {
.locator('#menu-posts-portfolio')
.getByRole('link', { name: 'Settings' })
.click();
await page.locator('.select2-container').click();
await page
.locator('.portfolio_archive_page .select2-container')
.click();
await page.getByRole('option', { name: 'Portfolio' }).click();
await page.getByLabel('Archive Page Items Per Page').fill('2');
await page.getByRole('button', { name: 'Save Changes' }).click();
Expand Down

0 comments on commit 03b7d99

Please sign in to comment.