Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: use header for service2 auth (#26419)
Pavel Feldmanf6563f1a9091
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.tsindex 69c433825f..65b86dcec8 100644--- a/tests/library/playwright.config.ts+++ b/tests/library/playwright.config.ts@@ -70,9 +70,12 @@ if (mode === 'service') {if (mode === 'service2') {process.env.PW_VERSION_OVERRIDE = '1.37';connectOptions = {- wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?accessKey=${process.env.PLAYWRIGHT_SERVICE_ACCESS_KEY}&cap=${JSON.stringify({ os, runId })}`,+ wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?cap=${JSON.stringify({ os, runId })}`,timeout: 3 * 60 * 1000,exposeNetwork: '<loopback>',+ headers: {+ 'x-mpt-access-key': process.env.PLAYWRIGHT_SERVICE_ACCESS_KEY!+ }};}