Skip to content

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

fix(test): write after end in proxy test (#3039)

Joel Einbinder23f506b3e653
diff --git a/test/proxy.jest.js b/test/proxy.jest.js
index 012683d693..37129f1947 100644
--- a/test/proxy.jest.js
+++ b/test/proxy.jest.js
@@ -41,8 +41,9 @@ describe('HTTP Proxy', () => {
'Proxy-Authenticate': 'Basic realm="Access to internal site"'
});
res.end();
+ } else {
+ res.end(`<html><title>${auth}</title></html>`);
}
- res.end(`<html><title>${auth}</title></html>`);
});
const browser = await browserType.launch({
...defaultBrowserOptions,