-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I followed the documentation to setup the service with Microsoft ENTRA Id, with the pat token is working correctly. But with entra id login I can't execute the test.
To Reproduce
Steps to reproduce the behavior:
- I created a Microsoft ENTRA app
- I added that app with the role contributor or owner to my playwright testing service workspace
- I login with az login all is correct
- I execute my tests with the playwright.service.config.ts and got the following error:
TypeError: Cannot read properties of undefined (reading 'split')
at parseJwt (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/@azure/microsoft-playwright-testing/src/utils/utils.ts:50:23)
at warnIfAccessTokenCloseToExpiry (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/@azure/microsoft-playwright-testing/src/utils/utils.ts:120:26)
at performOneTimeOperation (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/@azure/microsoft-playwright-testing/src/core/playwrightService.ts:32:35)
at getServiceConfig (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/@azure/microsoft-playwright-testing/src/core/playwrightService.ts:124:3)
at Object. (/Users/abigailarmijohernandez/GitHub/playwrightSample/playwright.service.config.ts:8:21)
at Module._compile (node:internal/modules/cjs/loader:1723:14)
at Module.f._compile (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/utilsBundleImpl.js:16:994)
at loadTS (node:internal/modules/cjs/loader:1815:10)
at Object.i..ut._extensions. [as .ts] (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/utilsBundleImpl.js:16:1010)
at Module.load (node:internal/modules/cjs/loader:1458:32)
at Function._load (node:internal/modules/cjs/loader:1275:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Module.require (node:internal/modules/cjs/loader:1480:12)
at require (node:internal/modules/helpers:135:16)
at requireOrImport (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/transform/transform.js:230:18)
at loadUserConfig (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/common/configLoader.js:94:83)
at loadConfig (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/common/configLoader.js:105:28)
at loadConfigFromFileRestartIfNeeded (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/common/configLoader.js:286:10)
at runTests (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/program.js:199:18)
at t. (/Users/abigailarmijohernandez/GitHub/playwrightSample/node_modules/playwright/lib/program.js:54:7)
(base)
Expected behavior
A better error message if something is wrong
Screenshots
Setup information (please complete the following information):
- Azure Subscription Id: d5562316-f06d-4994-abeb-0a0562a8e639
- Workspace Name: Demo3445
- Service trace Id (if available):
- Log snippet (if available):
- Browser on which tests are executed (if applicable):
- Time range (in PST) when the issue was experienced:
- Playwright Version: 1.50.0
- Client machine OS: Sequoia 15.4
- OS requested on Service:
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels