Fix link click for shopper.searchForProduct
This commit is contained in:
parent
8e98a7c1e3
commit
491a04b52d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue