Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: unflake launcher CR extensions test (#15064)

Max Schmitt88695be3979f
diff --git a/tests/library/chromium/launcher.spec.ts b/tests/library/chromium/launcher.spec.ts
index 9bcf51b092..81893c69f5 100644
--- a/tests/library/chromium/launcher.spec.ts
+++ b/tests/library/chromium/launcher.spec.ts
@@ -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',