Skip to content

Commit 85af3f3

Browse files
committed
Addressed review comments
1 parent 1e8e0f5 commit 85af3f3

8 files changed

+39
-32
lines changed

articles/app-testing/playwright-workspaces/how-to-manage-access-tokens.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,19 @@ To create a new workspace access token:
8282

8383
1. On the **Access Management** page, select **Generate token**.
8484

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":::
8686

8787

8888
1. Enter the access token details, and then select **Generate token**.
8989

90-
![Screenshot that shows setup guide in the Azure portal, highlighting the 'Generate token' button.](./media/how-to-manage-access-tokens/playwright-workspaces-generate-access-token.png)
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+
9192

9293
1. Copy the access token for the workspace.
9394

9495
You can save the access token in a CI/CD secrets store or use it in an environment variable for running tests interactively.
9596

96-
![Screenshot that shows how to copy the generated access token in the Azure portal.](./media/how-to-manage-access-tokens/playwright-workspaces-copy-access-token.png)
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":::
9798

9899
> [!IMPORTANT]
99100
> 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.

articles/app-testing/playwright-workspaces/how-to-manage-workspace-access.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ You can grant a user access to a Playwright workspace by using the Azure portal:
5252

5353
If you don't have permissions to assign roles, the **Add role assignment** option is disabled.
5454

55-
![Screenshot that shows how to add a role assignment to your workspace in the Azure portal.](media/how-to-manage-workspace-access/add-role-assignment.png)
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":::
5656

5757
1. On the **Role** tab, select **Privileged administrator** roles.
5858

5959
1. Select one of the Playwright Workspaces [default roles](#default-roles), and then select **Next**.
6060

61-
![Screenshot that shows the list of roles when adding a role assignment in the Azure portal.](media/how-to-manage-workspace-access/add-role-assignment-select-role.png)
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":::
6262

6363
1. On the **Members** tab, make sure **User, group, or service principal** is selected.
6464

6565
1. Select **Select members**, find and select the users, groups, or service principals.
6666

67-
![Screenshot that shows the member selection interface when adding a role assignment in the Azure portal.](media/how-to-manage-workspace-access/add-role-assignment-select-members.png)
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":::
6868

6969
1. Select **Review + assign** to assign the role.
7070

@@ -80,7 +80,8 @@ You can revoke a user's access to a Playwright workspace using the Azure portal:
8080

8181
1. In the list of role assignments, add a checkmark next to the user and role you want to remove, and then select **Remove**.
8282

83-
![Screenshot that shows the list of role assignments and how to delete an assignment in the Azure portal.](media/how-to-manage-workspace-access/remove-role-assignment.png)
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+
8485

8586
1. Select **Yes** in the confirmation window to remove the role assignment.
8687

@@ -118,7 +119,8 @@ Perform the following steps to manage permissions with a custom role:
118119

119120
1. Select the required permission like `Microsoft.LoadTestService/PlaywrightWorkspaces/write`, and then select **Add**.
120121

121-
![Screenshot that shows the list of permissions for adding to the custom role in the Azure portal, highlighting the permission record to add.](media/how-to-manage-workspace-access/custom-role-permissions.png)
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+
122124

123125
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.
124126

articles/app-testing/playwright-workspaces/how-to-optimize-regional-latency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can configure the regional settings for your workspace in the Azure portal.
3434

3535
By default, the service uses remote browsers in the Azure region that's closest to the client machine to minimize latency.
3636

37-
![Screenshot of the Region Management settings page.](./media/how-to-optimize-regional-latency/configure-workspace-region-management.png )
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":::
3838

3939
## Related content
4040

articles/app-testing/playwright-workspaces/how-to-try-playwright-workspaces-free.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The following table lists the limits for the Playwright Workspaces free trial.
3131
|-|-|
3232
| Duration of trial | 30 days |
3333
| Total test minutes¹ | 100 minutes |
34-
| Number of workspaces²³ | 1 |
34+
| Number of workspaces<sup>2,3</sup> | 1 |
3535

3636
¹ 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)
3737

@@ -48,13 +48,14 @@ To get started with running your Playwright tests on cloud browsers, you first n
4848

4949
1. Sign in to the [Azure portal](https://portal.azure.com/).
5050
1. Select the menu button in the upper-left corner of the portal, and then select **Create a resource** a resource.
51-
52-
![Screenshot that shows the Azure portal menu to create a new resource.](./media/how-to-manage-playwright-workspace/azure-portal-create-resource.png)
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+
5454
1. Enter *Playwright Workspaces* in the search box.
5555
1. Select the **Playwright Workspaces** card, and then select **Create**.
5656

57-
![Screenshot that shows the Azure Marketplace search page with the Playwright Workspaces search result.](./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png)
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+
5859

5960
1. Provide the following information to configure a new Playwright workspace:
6061

@@ -76,7 +77,8 @@ To get started with running your Playwright tests on cloud browsers, you first n
7677

7778
1. To view the new workspace, select **Go to resource**.
7879

79-
![Screenshot that shows the deployment completion information in the Azure portal.](./media/how-to-manage-playwright-workspace/create-resource-deployment-complete.png)
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":::
81+
8082

8183
## Upgrade your workspace
8284

articles/app-testing/playwright-workspaces/overview-what-is-microsoft-playwright-workspaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Playwright Workspaces is built on top of the Playwright framework.
7070

7171
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.
7272

73-
![Diagram that shows an architecture overview of Playwright Workspaces.](./media/overview-what-is-microsoft-playwright-workspaces/playwright-workspaces-architecture-overview.png)
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":::
7474

7575
After a test run completes, the test results, trace files, and other test run files are available on the client machine.
7676

articles/app-testing/playwright-workspaces/quickstart-automate-end-to-end-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To get the service endpoint URL and store it as a CI workflow secret, perform th
5151

5252
1. Select the **Get Started** page.
5353

54-
![Screenshot that shows how to navigate to the Get Started page.](./media/quickstart-automate-end-to-end-testing/navigate-to-get-started.png)
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":::
5555

5656
1. In **Add region endpoint in your setup**, copy the service endpoint URL.
5757

articles/app-testing/playwright-workspaces/quickstart-run-end-to-end-tests.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ To get started with running your Playwright tests on cloud browsers, you first n
3737

3838
1. Select the menu button in the upper-left corner of the portal, and then select **Create a resource** a resource.
3939

40-
![Screenshot that shows the Azure portal menu to create a new resource.](./media/how-to-manage-playwright-workspace/azure-portal-create-resource.png)
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":::
4141

4242
1. Enter *Playwright Workspaces* in the search box.
4343
1. Select the **Playwright Workspaces** card, and then select **Create**.
4444

45-
![Screenshot that shows the Azure Marketplace search page with the Playwright Workspaces search result.](./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png)
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":::
4646

4747
1. Provide the following information to configure a new Playwright workspace:
4848

@@ -64,8 +64,7 @@ To get started with running your Playwright tests on cloud browsers, you first n
6464

6565
1. To view the new workspace, select **Go to resource**.
6666

67-
![Screenshot that shows the deployment completion information in the Azure portal.](./media/how-to-manage-playwright-workspace/create-resource-deployment-complete.png)
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":::
6968

7069
## Install Playwright Workspaces package
7170

@@ -103,13 +102,13 @@ To get the service endpoint URL, perform the following steps:
103102

104103
1. Select the **Get Started** page.
105104

106-
![Screenshot that shows how to navigate to the Get Started page.](./media/quickstart-automate-end-to-end-testing/navigate-to-get-started.png)
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":::
107106

108107
1. In **Add region endpoint in your setup**, copy the service endpoint URL.
109108

110109
Make sure this URL is available in `PLAYWRIGHT_SERVICE_URL` environment variable.
111110

112-
![Screenshot that shows how to copy the service endpoint URL.](./media/quickstart-run-end-to-end-tests/copy-service-endpoint-url.png)
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":::
113112

114113
::: zone pivot="playwright-test-runner"
115114

@@ -239,28 +238,30 @@ To run a single Playwright test in Visual Studio Code with Playwright Workspaces
239238

240239
The test explorer automatically detects your Playwright tests and the service configuration in your project.
241240

242-
![Screenshot of Visual Studio Code Test Explorer.](./media/quickstart-run-end-to-end-tests/visual-studio-code-test-explorer.png)
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+
243243

244244
1. Select **Select Default Profile**, and then select your default projects from the service configuration file.
245245

246246
Notice that the service run profiles are coming from the `playwright.service.config.ts` file you added previously.
247247

248248
By setting a default profile, you can automatically run your tests with the service, or run multiple Playwright projects simultaneously.
249249

250-
![Screenshot of choosing the default run profile in Visual Studio Code](./media/quickstart-run-end-to-end-tests/visual-studio-code-choose-run-profile.png)
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+
251252

252253
1. From the list of tests, select the **Run test** button next to a test to run it.
253254

254255
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.
255256

256-
![Screenshot of running a single test in Visual Studio Code](./media/quickstart-run-end-to-end-tests/visual-studio-code-run-test.png)
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":::
257258

258259
> [!TIP]
259260
> You can still debug your test code when you run your tests on remote browsers by using the **Debug test** button.
260261

261262
1. You can view the test results directly in Visual Studio Code.
262263

263-
![Screenshot of test results in Visual Studio Code.](./media/quickstart-run-end-to-end-tests/visual-studio-code-test-results.png)
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":::
264265

265266
---
266267

@@ -306,14 +307,14 @@ To run your Playwright test suite in Visual Studio Code with Playwright Workspac
306307
307308
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.
308309
309-
![Screenshot of how to run all tests from Test Explorer Visual Studio Code.](./media/quickstart-run-end-to-end-tests/visual-studio-code-run-all-tests.png)
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":::
310311
311312
> [!TIP]
312313
> You can still debug your test code when you run your tests on remote browsers by using the **Debug tests** button.
313314
314315
1. Alternately, you can select a specific service configuration from the list to only run the tests for a specific browser configuration.
315316
316-
![Screenshot of how to select a specific project to run tests against in Visual Studio Code.](./media/quickstart-run-end-to-end-tests/visual-studio-code-run-all-tests-select-project.png)
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":::
317318
318319
1. You can view all test results in the **Test results** tab.
319320

0 commit comments

Comments
 (0)