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
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/how-to-manage-access-tokens.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,18 +82,19 @@ To create a new workspace access token:
82
82
83
83
1. On the **Access Management** page, select **Generate token**.
84
84
85
-
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-workspaces-generate-new-access-token.png" alt-text="Screenshot that shows the access tokens settings page in the Azure portal, highlighting the 'Generate new token' button" lightbox="./media/how-to-manage-access-tokens/playwright-workspaces-generate-new-access-token.png":::
85
+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-workspaces-generate-new-access-token.png" alt-text="Screenshot that shows the access tokens settings page in the Azure portal, highlighting the 'Generate new token' button." lightbox="./media/how-to-manage-access-tokens/playwright-workspaces-generate-new-access-token.png":::
86
86
87
87
88
88
1. Enter the access token details, and then select **Generate token**.
89
89
90
-

90
+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-workspaces-generate-access-token.png" alt-text="Screenshot that shows setup guide in the Azure portal, highlighting the 'Generate token' button." lightbox="./media/how-to-manage-access-tokens/playwright-workspaces-generate-access-token.png":::
91
+
91
92
92
93
1. Copy the access token for the workspace.
93
94
94
95
You can save the access token in a CI/CD secrets store or use it in an environment variable for running tests interactively.
95
96
96
-

97
+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-workspaces-copy-access-token.png" alt-text="Screenshot that shows how to copy the generated access token in the Azure portal" lightbox="./media/how-to-manage-access-tokens/playwright-workspaces-copy-access-token.png":::
97
98
98
99
> [!IMPORTANT]
99
100
> You can only access the token value immediately after you've created it. You can't access the token value anymore at a later time.
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/how-to-manage-workspace-access.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,19 +52,19 @@ You can grant a user access to a Playwright workspace by using the Azure portal:
52
52
53
53
If you don't have permissions to assign roles, the **Add role assignment** option is disabled.
54
54
55
-

55
+
:::image type="content" source="./media/how-to-manage-workspace-access/add-role-assignment.png" alt-text="Screenshot that shows how to add a role assignment to your workspace in the Azure portal." lightbox="./media/how-to-manage-workspace-access/add-role-assignment.png":::
56
56
57
57
1. On the **Role** tab, select **Privileged administrator** roles.
58
58
59
59
1. Select one of the Playwright Workspaces [default roles](#default-roles), and then select **Next**.
60
60
61
-

61
+
:::image type="content" source="./media/how-to-manage-workspace-access/add-role-assignment-select-role.png" alt-text="Screenshot that shows the list of roles when adding a role assignment in the Azure portal." lightbox="./media/how-to-manage-workspace-access/add-role-assignment-select-role.png":::
62
62
63
63
1. On the **Members** tab, make sure **User, group, or service principal** is selected.
64
64
65
65
1. Select **Select members**, find and select the users, groups, or service principals.
66
66
67
-

67
+
:::image type="content" source="./media/how-to-manage-workspace-access/add-role-assignment-select-members.png" alt-text="Screenshot that shows the member selection interface when adding a role assignment in the Azure portal." lightbox="./media/how-to-manage-workspace-access/add-role-assignment-select-members.png":::
68
68
69
69
1. Select **Review + assign** to assign the role.
70
70
@@ -80,7 +80,8 @@ You can revoke a user's access to a Playwright workspace using the Azure portal:
80
80
81
81
1. In the list of role assignments, add a checkmark next to the user and role you want to remove, and then select **Remove**.
82
82
83
-

83
+
:::image type="content" source="./media/how-to-manage-workspace-access/remove-role-assignment.png" alt-text="Screenshot that shows the list of role assignments and how to delete an assignment in the Azure portal." lightbox="./media/how-to-manage-workspace-access/remove-role-assignment.png":::
84
+
84
85
85
86
1. Select **Yes** in the confirmation window to remove the role assignment.
86
87
@@ -118,7 +119,8 @@ Perform the following steps to manage permissions with a custom role:
118
119
119
120
1. Select the required permission like `Microsoft.LoadTestService/PlaywrightWorkspaces/write`, and then select **Add**.
120
121
121
-

122
+
:::image type="content" source="./media/how-to-manage-workspace-access/custom-role-permissions.png" alt-text="Screenshot that shows the list of permissions for adding to the custom role in the Azure portal, highlighting the permission record to add." lightbox="./media/how-to-manage-workspace-access/custom-role-permissions.png":::
123
+
122
124
123
125
1. Follow these steps to [add a role assignment](/azure/role-based-access-control/role-assignments-portal) for the custom role to the user account.
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/how-to-optimize-regional-latency.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ You can configure the regional settings for your workspace in the Azure portal.
34
34
35
35
By default, the service uses remote browsers in the Azure region that's closest to the client machine to minimize latency.
36
36
37
-

37
+
:::image type="content" source="./media/how-to-optimize-regional-latency/configure-workspace-region-management.png" alt-text="Screenshot of the Region Management settings page." lightbox="./media/how-to-optimize-regional-latency/configure-workspace-region-management.png":::
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/how-to-try-playwright-workspaces-free.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The following table lists the limits for the Playwright Workspaces free trial.
31
31
|-|-|
32
32
| Duration of trial | 30 days |
33
33
| Total test minutes¹ | 100 minutes |
34
-
| Number of workspaces²³| 1 |
34
+
| Number of workspaces<sup>2,3</sup>| 1 |
35
35
36
36
¹ If your usage exceeds the free test minute limit, only the overage counts toward the pay-as-you-go billing model. See [Playwright Workspaces preview pricing](https://aka.ms/pww/pricing)
37
37
@@ -48,13 +48,14 @@ To get started with running your Playwright tests on cloud browsers, you first n
48
48
49
49
1. Sign in to the [Azure portal](https://portal.azure.com/).
50
50
1. Select the menu button in the upper-left corner of the portal, and then select **Create a resource** a resource.
51
-
52
-

53
-
51
+
52
+
:::image type="content" source="./media/how-to-manage-playwright-workspace/azure-portal-create-resource.png" alt-text="Screenshot that shows the Azure portal menu to create a new resource." lightbox="./media/how-to-manage-playwright-workspace/azure-portal-create-resource.png":::
53
+
54
54
1. Enter *Playwright Workspaces* in the search box.
55
55
1. Select the **Playwright Workspaces** card, and then select **Create**.
56
56
57
-

57
+
:::image type="content" source="./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png" alt-text="Screenshot that shows the Azure Marketplace search page with the Playwright Workspaces search result." lightbox="./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png":::
58
+
58
59
59
60
1. Provide the following information to configure a new Playwright workspace:
60
61
@@ -76,7 +77,8 @@ To get started with running your Playwright tests on cloud browsers, you first n
76
77
77
78
1. To view the new workspace, select **Go to resource**.
78
79
79
-

80
+
:::image type="content" source="./media/how-to-manage-playwright-workspace/create-resource-deployment-complete.png" alt-text="Screenshot that shows the deployment completion information in the Azure portal." lightbox="./media/how-to-manage-playwright-workspace/create-resource-deployment-complete.png":::
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/overview-what-is-microsoft-playwright-workspaces.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Playwright Workspaces is built on top of the Playwright framework.
70
70
71
71
Playwright Workspaces instantiates cloud-hosted browsers across different operating systems. Playwright executes tests on the client machine—either a developer workstation or a CI agent—and remotely control cloud-hosted browsers via the Playwright Workspaces service. The test code remains on the client machine throughout the test run, while browser interactions are performed in the cloud.
72
72
73
-

73
+
:::image type="content" source="./media/overview-what-is-microsoft-playwright-workspaces/playwright-workspaces-architecture-overview.png" alt-text="Diagram that shows an architecture overview of Playwright Workspaces." lightbox="./media/overview-what-is-microsoft-playwright-workspaces/playwright-workspaces-architecture-overview.png":::
74
74
75
75
After a test run completes, the test results, trace files, and other test run files are available on the client machine.
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/quickstart-automate-end-to-end-testing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ To get the service endpoint URL and store it as a CI workflow secret, perform th
51
51
52
52
1. Select the **Get Started** page.
53
53
54
-

54
+
:::image type="content" source="./media/quickstart-automate-end-to-end-testing/navigate-to-get-started.png" alt-text="Screenshot that shows how to navigate to the Get Started page." lightbox="./media/quickstart-automate-end-to-end-testing/navigate-to-get-started.png":::
55
55
56
56
1. In **Add region endpoint in your setup**, copy the service endpoint URL.
Copy file name to clipboardExpand all lines: articles/app-testing/playwright-workspaces/quickstart-run-end-to-end-tests.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,12 @@ To get started with running your Playwright tests on cloud browsers, you first n
37
37
38
38
1. Select the menu button in the upper-left corner of the portal, and then select **Create a resource** a resource.
39
39
40
-

40
+
:::image type="content" source="./media/how-to-manage-playwright-workspace/azure-portal-create-resource.png" alt-text="Screenshot that shows the Azure portal menu to create a new resource." lightbox="./media/how-to-manage-playwright-workspace/azure-portal-create-resource.png":::
41
41
42
42
1. Enter *Playwright Workspaces* in the search box.
43
43
1. Select the **Playwright Workspaces** card, and then select **Create**.
44
44
45
-

45
+
:::image type="content" source="./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png" alt-text="Screenshot that shows the Azure Marketplace search page with the Playwright Workspaces search result." lightbox="./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png":::
46
46
47
47
1. Provide the following information to configure a new Playwright workspace:
48
48
@@ -64,8 +64,7 @@ To get started with running your Playwright tests on cloud browsers, you first n
64
64
65
65
1. To view the new workspace, select **Go to resource**.
66
66
67
-

68
-
67
+
:::image type="content" source="./media/how-to-manage-playwright-workspace/create-resource-deployment-complete.png" alt-text="Screenshot that shows the deployment completion information in the Azure portal." lightbox="./media/how-to-manage-playwright-workspace/create-resource-deployment-complete.png":::
69
68
70
69
## Install Playwright Workspaces package
71
70
@@ -103,13 +102,13 @@ To get the service endpoint URL, perform the following steps:
103
102
104
103
1. Select the **Get Started** page.
105
104
106
-

105
+
:::image type="content" source="./media/quickstart-automate-end-to-end-testing/navigate-to-get-started.png" alt-text="Screenshot that shows how to navigate to the Get Started page." lightbox="./media/quickstart-automate-end-to-end-testing/navigate-to-get-started.png":::
107
106
108
107
1. In **Add region endpoint in your setup**, copy the service endpoint URL.
109
108
110
109
Make sure this URL is available in `PLAYWRIGHT_SERVICE_URL` environment variable.
111
110
112
-

111
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/copy-service-endpoint-url.png" alt-text="Screenshot that shows how to copy the service endpoint URL." lightbox="../media/quickstart-run-end-to-end-tests/copy-service-endpoint-url.png":::
113
112
114
113
::: zone pivot="playwright-test-runner"
115
114
@@ -239,28 +238,30 @@ To run a single Playwright test in Visual Studio Code with Playwright Workspaces
239
238
240
239
The test explorer automatically detects your Playwright tests and the service configuration in your project.
241
240
242
-

241
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/visual-studio-code-test-explorer.png" alt-text="Screenshot of Visual Studio Code Test Explorer." lightbox="./media/quickstart-run-end-to-end-tests/visual-studio-code-test-explorer.png":::
242
+
243
243
244
244
1. Select **Select Default Profile**, and thenselectyour default projects from the service configuration file.
245
245
246
246
Notice that the service run profiles are coming from the `playwright.service.config.ts` file you added previously.
247
247
248
248
By setting a default profile, you can automatically run your tests with the service, or run multiple Playwright projects simultaneously.
249
249
250
-

250
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/visual-studio-code-choose-run-profile.png" alt-text="Screenshot of choosing the default run profile in Visual Studio Code." lightbox="./media/quickstart-run-end-to-end-tests/visual-studio-code-choose-run-profile.png":::
251
+
251
252
252
253
1. From the list of tests, selectthe**Run test** button next to a test to run it.
253
254
254
255
The test runs on the projects you selected in the default profile. If you selected one or more projects from the service configuration, the test runs on remote browsers in your workspace.
255
256
256
-

257
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/visual-studio-code-run-test.png" alt-text="Screenshot of running a single test in Visual Studio Code." lightbox="./media/quickstart-run-end-to-end-tests/visual-studio-code-run-test.png":::
257
258
258
259
> [!TIP]
259
260
> You can still debug your test code when you run your tests on remote browsers by using the **Debug test** button.
260
261
261
262
1. You can view the test results directly in Visual Studio Code.
262
263
263
-

264
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/visual-studio-code-test-results.png" alt-text="Screenshot of test results in Visual Studio Code." lightbox="./media/quickstart-run-end-to-end-tests/visual-studio-code-test-results.png":::
264
265
265
266
---
266
267
@@ -306,14 +307,14 @@ To run your Playwright test suite in Visual Studio Code with Playwright Workspac
306
307
307
308
When you run all tests, the default profile is used. In the previous step, you configured the default profile to use projects from the service configuration.
308
309
309
-

310
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/visual-studio-code-run-all-tests.png" alt-text="Screenshot of how to run all tests from Test Explorer Visual Studio Code." lightbox="./media/quickstart-run-end-to-end-tests/visual-studio-code-run-all-tests.png":::
310
311
311
312
> [!TIP]
312
313
> You can still debug your test code when you run your tests on remote browsers by using the **Debug tests** button.
313
314
314
315
1. Alternately, you can select a specific service configuration from the list to only run the tests for a specific browser configuration.
315
316
316
-

317
+
:::image type="content" source="./media/quickstart-run-end-to-end-tests/visual-studio-code-run-all-tests-select-project.png" alt-text="Screenshot of how to select a specific project to run tests against in Visual Studio Code." lightbox="./media/quickstart-run-end-to-end-tests/visual-studio-code-run-all-tests-select-project.png":::
317
318
318
319
1. You can view all test results in the **Test results** tab.
0 commit comments