Issue 1:
System info

Playwright Version: [v1.32.1]

Operating System: [All]

Browser: [All]

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/iffa/playwright-tsconfig-extends-array

Steps

npm run test

Fails

Expected

Should successfully parse tsconfig.json and run tests.

Actual

Fails to parse tsconfig.json, since it expects extends to be a string, when in TypeScript 5.0 it can also be an Array.

https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#supporting-multiple-configuration-files-in-extends

> playwright-tsconfig-extends-array@1.0.0 test
> npx playwright test

TypeError: The "path" argument must be of type string. Received an instance of Array
at new NodeError (node:internal/errors:399:5)
at validateString (node:internal/validators:163:11)
at Object.join (node:path:1172:7)
at loadTsconfig (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/third_party/tsconfig-loader.js:107:35)
at loadSyncDefault (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/third_party/tsconfig-loader.js:60:18)
at tsConfigLoader (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/third_party/tsconfig-loader.js:42:22)
at loadAndValidateTsconfigForFile (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/common/transform.js:56:55)
at resolveHook (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/common/transform.js:71:20)
at Function.resolveFilename (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/common/transform.js:179:24)
at Function.Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (/playwright-tsconfig-extends-array/playwright.config.ts:1:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module.f._compile (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:994)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.i.<computed>.ot._extensions.<computed> (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at requireOrImport (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/common/transform.js:163:20)
at requireOrImportDefaultObject (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/common/configLoader.js:225:53)
at ConfigLoader.loadConfigFile (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/common/configLoader.js:57:26)
at runTests (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/cli.js:127:46)
at ji.<anonymous> (/playwright-tsconfig-extends-array/node_modules/@playwright/test/lib/cli.js:45:7) {
code: 'ERR_INVALID_ARG_TYPE'
}

Issue 2:
System info

Playwright Version: [v1.31.2]

Operating System: [Windows 10]

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

NA

or

Playwright.config.ts file - Set the launchOptions

{
name: 'Google Chrome',
use: {
channel: 'chromium',
headless: false,
launchOptions: {
executablePath: "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
args: ['--auth-server-whitelist="_"'],
},
},
},

Test file (self-contained) - Launch the Application URL using below test

test.describe("@Smoke Login", () => {
test('Login TC', async ({page}) => {
await page.goto("Application URL"));
});
});

Steps

Set the Config file using lauchoptions.

Run the command to execute test --> npx playwright test login.spec.ts

Expected

Application should be launched in Incognito mode and login page should be displayed.

Actual

Application login is automatically getting validated using SSO by playwright. While in incognito mode login screen should be displayed always. Playwright is automatically considering SSO. Which is stopping us to validate login using multiple credentials.