From 03b7d991ddab755408e03e2590859fd6c8c4cee3 Mon Sep 17 00:00:00 2001 From: Fellan-91 Date: Thu, 22 Aug 2024 15:37:10 +0300 Subject: [PATCH] fixed archive page selector for e2e archive tests --- tests/e2e/specs/archive.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/specs/archive.spec.js b/tests/e2e/specs/archive.spec.js index 8b19c4f3..8aa5bdc6 100644 --- a/tests/e2e/specs/archive.spec.js +++ b/tests/e2e/specs/archive.spec.js @@ -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();