Fix link click for shopper.searchForProduct

This commit is contained in:
Alex Florisca 2022-02-17 15:43:28 +00:00
parent 8e98a7c1e3
commit 491a04b52d
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ const shopper = {
// Single search results may go directly to product page
if ( await page.waitForSelector('h2.entry-title') ) {
await expect(page).toMatchElement('h2.entry-title', {text: prouductName});
await expect(page).toClick('h2.entry-title', {text: prouductName});
await expect(page).toClick('h2.entry-title > a', {text: prouductName});
}
await page.waitForSelector('h1.entry-title');
await expect(page.title()).resolves.toMatch(prouductName);