Update selector
This commit is contained in:
parent
0de5726332
commit
946a4e755a
|
@ -167,7 +167,7 @@ const shopper = {
|
|||
},
|
||||
|
||||
searchForProduct: async ( prouductName ) => {
|
||||
const searchFieldSelector = 'input.search-field';
|
||||
const searchFieldSelector = 'input.wp-block-search__input';
|
||||
await page.waitForSelector(searchFieldSelector, { timeout: 100000 });
|
||||
await expect(page).toFill(searchFieldSelector, prouductName);
|
||||
await expect(page).toClick('.search-submit');
|
||||
|
|
Loading…
Reference in New Issue