From 789688b26b408b3aa46666f56257ba5f32b2251a Mon Sep 17 00:00:00 2001 From: Vipul Patil Date: Fri, 10 Jan 2025 15:56:21 +0530 Subject: [PATCH] FIX: Update selector to work with block based search results. This fix has been added to test plugin with block themes. --- tests/e2e-playwright/specs/03_custom-search-test.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e-playwright/specs/03_custom-search-test.spec.js b/tests/e2e-playwright/specs/03_custom-search-test.spec.js index 511e0f7..7b1b041 100644 --- a/tests/e2e-playwright/specs/03_custom-search-test.spec.js +++ b/tests/e2e-playwright/specs/03_custom-search-test.spec.js @@ -24,7 +24,7 @@ test.describe( "Validate the custom search", () => { // Expect the posts title. expect( - page.locator('role=link[name="Migrate from any CMS to WordPress"i]') + page.locator('h2.wp-block-post-title >> text=Migrate from any CMS to WordPress') ).toHaveText("Migrate from any CMS to WordPress"); }); });