Update selectors

This commit is contained in:
Greg 2021-07-22 11:38:42 -06:00
parent 946a4e755a
commit 32454db984
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ const shopper = {
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');
await expect(page).toClick('.wp-block-search__button');
await page.waitForSelector('h2.entry-title');
await expect(page).toMatchElement('h2.entry-title', {text: prouductName});
await expect(page).toClick('h2.entry-title', {text: prouductName});