Update selector

This commit is contained in:
Greg 2021-07-22 11:23:24 -06:00
parent 0de5726332
commit 946a4e755a
1 changed files with 1 additions and 1 deletions

View File

@ -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');