test: unflake launcher CR extensions test (#15064)
chore: unflake launcher CR extensions test
This commit is contained in:
parent
a46aaee6e8
commit
88695be397
|
|
@ -118,6 +118,7 @@ it('should support request/response events when using backgroundPage()', async (
|
||||||
const backgroundPage = backgroundPages.length
|
const backgroundPage = backgroundPages.length
|
||||||
? backgroundPages[0]
|
? backgroundPages[0]
|
||||||
: await context.waitForEvent('backgroundpage');
|
: await context.waitForEvent('backgroundpage');
|
||||||
|
await backgroundPage.waitForURL(/chrome-extension\:\/\/.*/);
|
||||||
const [, request, response, contextRequest, contextResponse] = await Promise.all([
|
const [, request, response, contextRequest, contextResponse] = await Promise.all([
|
||||||
backgroundPage.evaluate(url => fetch(url, {
|
backgroundPage.evaluate(url => fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue