Add longer timeout on selector
This commit is contained in:
parent
e0c5bdadc2
commit
88686602ed
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue