test: unflake launcher CR extensions test (#15064)

chore: unflake launcher CR extensions test
This commit is contained in:
Max Schmitt 2022-06-23 09:36:33 +02:00 committed by GitHub
parent a46aaee6e8
commit 88695be397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,7 @@ it('should support request/response events when using backgroundPage()', async (
const backgroundPage = backgroundPages.length
? backgroundPages[0]
: await context.waitForEvent('backgroundpage');
await backgroundPage.waitForURL(/chrome-extension\:\/\/.*/);
const [, request, response, contextRequest, contextResponse] = await Promise.all([
backgroundPage.evaluate(url => fetch(url, {
method: 'POST',