Skip to content

Commit dff4af0

Browse files
committed
fix tests
1 parent 587b597 commit dff4af0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Playwright.TestingHarnessTest/tests/mstest/basic.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ test('should be able to parse LaunchOptions.Proxy from runsettings', async ({ ru
235235
}).listen(3128);
236236

237237
const waitForProxyRequest = new Promise<[string, string]>((resolve) => {
238-
proxyServer.once('proxyReq', (proxyReq, req, res, options) => {
238+
proxyServer.on('proxyReq', (proxyReq, req, res, options) => {
239+
if (req.url.includes('google.com')) // Telemetry requests.
240+
{
241+
return;
242+
}
239243
const authHeader = proxyReq.getHeader('authorization') as string;
240244
const auth = Buffer.from(authHeader.split(' ')[1], 'base64').toString();
241245
resolve([req.url, auth]);

0 commit comments

Comments
 (0)