Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jan 30, 2025
1 parent 587b597 commit dff4af0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Playwright.TestingHarnessTest/tests/mstest/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ test('should be able to parse LaunchOptions.Proxy from runsettings', async ({ ru
}).listen(3128);

const waitForProxyRequest = new Promise<[string, string]>((resolve) => {
proxyServer.once('proxyReq', (proxyReq, req, res, options) => {
proxyServer.on('proxyReq', (proxyReq, req, res, options) => {
if (req.url.includes('google.com')) // Telemetry requests.
{
return;
}
const authHeader = proxyReq.getHeader('authorization') as string;
const auth = Buffer.from(authHeader.split(' ')[1], 'base64').toString();
resolve([req.url, auth]);
Expand Down

0 comments on commit dff4af0

Please sign in to comment.