You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run this command to execute tests locally, without the service to identify any problems before integrating with the service. This project is used in the next steps to integrate with the service.
62
+
Run this command to execute tests locally, outside of the service, to identify any problems before integrating with the service. This project is used in the next steps to integrate with the service.
63
63
64
64
```powershell
65
65
npx playwright test
66
66
```
67
67
68
-
## Integrate Playwright test suite with Microsoft Playwright Testing service.
68
+
## Integrate Playwright test suite with Microsoft Playwright Testing service
69
69
70
-
In this tutorial, you set up Playwright Testing service and integrate the Playwright test suite you created in the previous tutorial with the service.
70
+
Integrate the Playwright test suite you created in the previous tutorial with Playwright Testing service.
71
71
72
72
Follow these steps to set up the service and integrate the test suite.
73
73
74
-
1. Create a Playwright Testing workspace
74
+
1. Create a Playwright Testing workspace.
75
75
76
76
To get started with running your Playwright tests at scale on cloud browsers, you first create a Microsoft Playwright Testing workspace in the Playwright portal.
77
77
@@ -80,7 +80,7 @@ To get started with running your Playwright tests at scale on cloud browsers, yo
80
80
When the workspace creation finishes, you're redirected to the setup guide.
81
81
82
82
83
-
2. Install Microsoft Playwright Testing package
83
+
2. Install Microsoft Playwright Testing package.
84
84
85
85
To install service package, navigate to the location of your test suite you created in the previous tutorial and run this command:
86
86
@@ -93,7 +93,7 @@ This command generates `playwright.service.config.ts` file which serves to:
93
93
- Direct and authenticate Playwright to the Microsoft Playwright Testing service.
94
94
- Adds a reporter to publish test results and artifacts.
95
95
96
-
3. Configure the service region endpoint
96
+
3. Configure the service region endpoint.
97
97
98
98
In your setup, you have to provide the region-specific service endpoint. The endpoint depends on the Azure region you selected when creating the workspace.
99
99
@@ -106,7 +106,7 @@ To get the service endpoint URL, perform the following steps:
106
106
:::image type="content" source="./media/quickstart-run-end-to-end-tests/playwright-testing-region-endpoint.png" alt-text="Screenshot that shows how to copy the workspace region endpoint in the Playwright Testing portal." lightbox="./media/quickstart-run-end-to-end-tests/playwright-testing-region-endpoint.png":::
107
107
108
108
109
-
4. Set up your environment
109
+
4. Set up your environment.
110
110
111
111
To set up your environment, you have to configure the `PLAYWRIGHT_SERVICE_URL` environment variable with the value you obtained in the previous steps.
112
112
@@ -127,9 +127,9 @@ We recommend that you use the `dotenv` module to manage your environment. With `
127
127
Make sure to replace the `{MY-REGION-ENDPOINT}` text placeholder with the value you copied earlier.
128
128
129
129
130
-
5. Set up Authentication
130
+
5. Set up authentication.
131
131
132
-
To run your Playwright tests in your Microsoft Playwright Testing workspace, you need to authenticate the Playwright client where you're running the tests with the service. In this tutorial, it is the dev workstation where you are running the Playwright tests.
132
+
To run your Playwright tests in your Microsoft Playwright Testing workspace, you need to authenticate the Playwright client where you're running the tests with the service. Authenticate with the dev workstation where you are running the Playwright tests.
133
133
134
134
Microsoft Entra ID is the default and recommended authentication for the service. Use [Azure CLI](/cli/azure/install-azure-cli) to sign-in
135
135
@@ -141,7 +141,7 @@ az login
141
141
> If you're a part of multiple Microsoft Entra tenants, make sure you sign in to the tenant where your workspace belongs. You can get the tenant ID from Azure portal. See [Find your Microsoft Entra Tenant](/azure/azure-portal/get-subscription-tenant-id#find-your-microsoft-entra-tenant). Once you get the ID, sign-in using the command`az login --tenant <TenantID>`
142
142
143
143
144
-
6. Enable artifacts in your Playwright setup
144
+
6. Enable artifacts in your Playwright setup.
145
145
146
146
In the `playwright.config.ts` file of your project, ensure you are collecting all the required artifacts.
0 commit comments