Add longer timeout on selector

This commit is contained in:
Greg 2021-07-21 13:26:33 -06:00
parent e0c5bdadc2
commit 88686602ed
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ const shopper = {
},
searchForProduct: async ( prouductName ) => {
await page.waitForSelector('.search-field');
await page.waitForSelector('.search-field', { timeout: 100000 });
await expect(page).toFill('.search-field', prouductName);
await expect(page).toClick('.search-submit');
await page.waitForSelector('h2.entry-title');