-
Notifications
You must be signed in to change notification settings - Fork 7
Description
🐞 Describe the bug
The Azure Playwright reporting service generates a Report URL that contains an incorrect Azure AD tenant domain in the Azure Portal URL.
Specifically, the tenant fragment of the URL is set to microsoft.onmicrosoft.com, which does not match the Azure AD tenant associated with the subscription and Playwright Workspace. As a result, the URL prompts for authentication and then fails with an Azure Portal error indicating that the user does not have access to the tenant.
The remainder of the URL (subscription ID, resource group, and resource path) is valid. Replacing only the tenant domain portion of the URL with the correct tenant domain (e.g. <tenant-domain>.onmicrosoft.com) immediately resolves the issue.
✅ Expected behavior
The generated Report URL should:
- Use the Azure AD tenant domain associated with the subscription and Playwright Workspace, or
- Omit the tenant fragment (
#@<tenant>) entirely and allow Azure Portal to automatically resolve the correct tenant.
In either case, the Report URL should be directly usable without requiring manual modification.
🔁 To reproduce
- Execute a Playwright test run using Azure Playwright Workspaces.
- Capture the Report URL output by the service (for example, in CI/CD pipeline logs).
- Open the generated URL in a browser.
- Authenticate when prompted.
- Observe the Azure Portal error indicating lack of access to the tenant.
Example generated URL (obfuscated):
https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.LoadTestService/playwrightWorkspaces/<WORKSPACE_NAME>/TestRuns
Working URL after replacing only the tenant domain:
https://ms.portal.azure.com/#@<tenant-domain>.onmicrosoft.com/resource/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.LoadTestService/playwrightWorkspaces/<WORKSPACE_NAME>/TestRuns
No other part of the URL needs to be modified.
🧩 Setup information
Please provide the following details to help us investigate:
- Playwright version: 1.57.0
- Requested OS on the service (Linux/Windows): Linux
🗒️ Additional context
The Playwright test suite is executed from a Microsoft-hosted Azure DevOps pipeline agent, using an Azure DevOps service connection that has the required permissions on the subscription and Playwright Workspace.