Skip to content

Commit

Permalink
FIX: Update selector to work with block based search results.
Browse files Browse the repository at this point in the history
This fix has been added to test plugin with block themes.
  • Loading branch information
patil-vipul committed Jan 10, 2025
1 parent 35382a5 commit 789688b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e-playwright/specs/03_custom-search-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});

0 comments on commit 789688b

Please sign in to comment.