Skip to content

Commit 90662fb

Browse files
committed
Merge branch 'release-preview-playwright-service' into mpt-troubleshooting
2 parents 9f37b56 + fd0c42f commit 90662fb

File tree

47 files changed

+105
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+105
-69
lines changed

articles/playwright-testing/concept-determine-optimal-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Optimal test suite configuration
33
description: Learn about the factors that affect test completion time in Microsoft Playwright Testing. Get practical steps to determine the optimal Playwright test project configuration.
44
ms.topic: conceptual
5-
ms.date: 09/27/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

articles/playwright-testing/how-to-configure-visual-comparisons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure visual comparisons
33
description: Learn how to configure visual comparisons with Microsoft Playwright Testing.
44
ms.topic: how-to
5-
ms.date: 09/13/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Manage workspace access tokens
33
description: Learn how to create & manage access tokens to authenticate requests to Microsoft Playwright Testing Preview. Access tokens provide secure access to run tests on the service, and to the Microsoft Playwright Testing API.
44
ms.topic: how-to
5-
ms.date: 09/27/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

@@ -43,9 +43,11 @@ To view the list of workspace access tokens:
4343

4444
1. Select the settings icon on the home page to go to the workspace settings.
4545

46+
1. Select the **Access tokens** page to view the list of access tokens.
47+
4648
The **Access tokens** page displays the list of access tokens for the workspace.
4749

48-
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-view-tokens.png" alt-text="Screenshot that shows the access tokens settings page in the Playwright portal.":::
50+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-view-tokens.png" alt-text="Screenshot that shows the access tokens settings page in the Playwright portal." lightbox="./media/how-to-manage-access-tokens/playwright-testing-view-tokens.png":::
4951

5052
## Generate a workspace access token
5153

@@ -63,17 +65,17 @@ To create a new workspace access token:
6365

6466
1. On the **Access tokens** page, select **Generate new token**.
6567

66-
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-generate-new-access-token.png" alt-text="Screenshot that shows the access tokens settings page in the Playwright Testing portal, highlighting the 'Generate new token' button.":::
68+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-generate-new-access-token.png" alt-text="Screenshot that shows the access tokens settings page in the Playwright Testing portal, highlighting the 'Generate new token' button." lightbox="./media/how-to-manage-access-tokens/playwright-testing-generate-new-access-token.png":::
6769

6870
1. Enter the access token details, and then select **Generate token**.
6971

70-
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-generate-token.png" alt-text="Screenshot that shows setup guide in the Playwright Testing portal, highlighting the 'Generate token' button.":::
72+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-generate-token.png" alt-text="Screenshot that shows setup guide in the Playwright Testing portal, highlighting the 'Generate token' button." lightbox="./media/how-to-manage-access-tokens/playwright-testing-generate-token.png":::
7173

7274
1. Copy the access token for the workspace.
7375

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

76-
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-copy-access-token.png" alt-text="Screenshot that shows how to copy the generated access token in the Playwright Testing portal.":::
78+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-copy-access-token.png" alt-text="Screenshot that shows how to copy the generated access token in the Playwright Testing portal." lightbox="./media/how-to-manage-access-tokens/playwright-testing-copy-access-token.png":::
7779

7880
> [!IMPORTANT]
7981
> 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.
@@ -93,7 +95,7 @@ You can only delete access tokens that you created in a workspace. To create an
9395

9496
1. On the **Access tokens** page, select **Delete** next to the access token that you want to delete.
9597

96-
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-delete-token.png" alt-text="Screenshot that shows how to delete an access tokenin the Playwright portal.":::
98+
:::image type="content" source="./media/how-to-manage-access-tokens/playwright-testing-delete-token.png" alt-text="Screenshot that shows how to delete an access tokenin the Playwright portal." lightbox="./media/how-to-manage-access-tokens/playwright-testing-delete-token.png":::
9799

98100
1. Select **Delete** on the deletion confirmation page.
99101

articles/playwright-testing/how-to-manage-playwright-workspace.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Manage workspaces
33
description: Learn how to create and manage Microsoft Playwright Testing workspaces. Use the Playwright portal or Azure portal to manage workspaces.
44
ms.topic: how-to
5-
ms.date: 08/29/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

@@ -34,7 +34,7 @@ To get started with running your Playwright tests on cloud browsers, you first c
3434

3535
# [Playwright portal](#tab/playwright)
3636

37-
When you create a workspace in the Playwright portal, a new resource group and a Microsoft Playwright Testing Azure resource are created in your Azure subscription.
37+
When you create a workspace in the Playwright portal, the service creates a new resource group and a Microsoft Playwright Testing Azure resource in your Azure subscription. The name of the new resource group is based on the workspace name.
3838

3939
[!INCLUDE [Create workspace in Playwright portal](./includes/include-playwright-portal-create-workspace.md)]
4040

@@ -46,18 +46,17 @@ When you create a workspace in the Playwright portal, a new resource group and a
4646
:::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":::
4747

4848
1. Enter *Microsoft Playwright Testing* in the search box.
49-
1. Select **Microsoft Playwright Testing (Preview)**.
49+
1. Select the **Microsoft Playwright Testing (Preview)** card, and then select **Create**.
5050

5151
:::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 Microsoft Playwright Testing search result." lightbox="./media/how-to-manage-playwright-workspace/azure-portal-search-playwright-resource.png":::
5252

53-
1. On the Microsoft Playwright Testing page, select **Create**.
5453
1. Provide the following information to configure a new Microsoft Playwright Testing workspace:
5554

5655
|Field |Description |
5756
|---------|---------|
5857
|**Subscription** | Select the Azure subscription that you want to use for this Microsoft Playwright Testing workspace. |
5958
|**Resource group** | Select an existing resource group. Or select **Create new**, and then enter a unique name for the new resource group. |
60-
|**Name** | Enter a unique name to identify your workspace.<BR>The name can't contain special characters, such as \\/""[]:\|<>+=;,?*@&, or whitespace. |
59+
|**Name** | Enter a unique name to identify your workspace.<BR>The name can only consist of alphanumerical characters, and have a length between 3 and 64 characters. |
6160
|**Location** | Select a geographic location to host your workspace. <BR>This location also determines where the test execution results and related artifacts are stored. |
6261

6362
> [!NOTE]
@@ -131,7 +130,7 @@ To view the list of test runs in the Playwright portal:
131130

132131
1. On the workspace home page, you can view the workspace activity log.
133132

134-
:::image type="content" source="./media/how-to-manage-playwright-workspace/playwright-testing-activity-log.png" alt-text="Screenshot that shows the activity log for a workspace in the Playwright Testing portal.":::
133+
:::image type="content" source="./media/how-to-manage-playwright-workspace/playwright-testing-activity-log.png" alt-text="Screenshot that shows the activity log for a workspace in the Playwright Testing portal." lightbox="./media/how-to-manage-playwright-workspace/playwright-testing-activity-log.png":::
135134

136135
## Delete a workspace
137136

@@ -155,7 +154,9 @@ To delete a Playwright workspace:
155154
# [Azure portal](#tab/portal)
156155

157156
1. Sign in to the [Azure portal](https://portal.azure.com/).
157+
158158
1. Navigate to your Playwright workspace.
159+
159160
1. Select **Delete** to delete the workspace.
160161

161162
:::image type="content" source="./media/how-to-manage-playwright-workspace/azure-portal-delete-workspace.png" alt-text="Screenshot that shows the delete workspace functionality in the Azure portal." lightbox="./media/how-to-manage-playwright-workspace/azure-portal-delete-workspace.png":::
@@ -167,7 +168,7 @@ To delete a Playwright workspace:
167168

168169
## Related content
169170

170-
- [Optimize regional latency a workspace](./how-to-optimize-regional-latency.md)
171+
- [Optimize regional latency for a workspace](./how-to-optimize-regional-latency.md)
171172

172173
- [Manage workspace access](./how-to-manage-workspace-access.md)
173174

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

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Manage workspace access
33
description: Learn how to manage access to a Microsoft Playwright Testing workspace by using Azure role-based access control (Azure RBAC). Grant user permissions for a workspace by assigning roles.
44
ms.topic: how-to
5-
ms.date: 08/29/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

@@ -39,25 +39,38 @@ Microsoft Playwright Testing workspaces uses three Azure built-in roles. To gran
3939

4040
You can grant a user access to a Microsoft Playwright Testing workspace by using the Azure portal:
4141

42-
1. Sign in to the [Azure portal](https://portal.azure.com), and go to your Microsoft Playwright Testing workspace.
42+
1. Sign in to the [Playwright portal](https://aka.ms/mpt/portal) with your Azure account.
4343

44-
1. On the left pane, select **Access Control (IAM)**, and then select **Add > Add role assignment**.
44+
1. Select the workspace settings icon, and then go to the **Users** page.
4545

46-
If you don't have permissions to assign roles, the Add role assignment option is disabled.
46+
:::image type="content" source="media/how-to-manage-workspace-access/playwright-testing-user-settings.png" alt-text="Screenshot that shows the Users page in the workspace settings in the Playwright Testing portal." lightbox="media/how-to-manage-workspace-access/playwright-testing-user-settings.png":::
4747

48-
:::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.":::
48+
1. Select **Manage users for your workspace in the Azure portal** to go to your workspace in the Azure portal.
49+
50+
Alternately, you can go directly to the Azure portal and select your workspace:
51+
52+
1. Sign in to the [Azure portal](https://portal.azure.com/).
53+
1. Enter **Playwright Testing** in the search box, and then select **Playwright Testing** in the **Services** category.
54+
1. Select your Microsoft Playwright Testing workspace from the list.
55+
1. On the left pane, select **Access Control (IAM)**.
56+
57+
1. On the **Access Control (IAM)** page, select **Add > Add role assignment**.
58+
59+
If you don't have permissions to assign roles, the **Add role assignment** option is disabled.
60+
61+
:::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":::
4962

5063
1. On the **Role** tab, select **Privileged administrator** roles.
5164

5265
1. Select one of the Microsoft Playwright Testing [default roles](#default-roles), and then select **Next**.
5366

54-
:::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.":::
67+
:::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":::
5568

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

5871
1. Select **Select members**, find and select the users, groups, or service principals.
5972

60-
:::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.":::
73+
:::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":::
6174

6275
1. Select **Review + assign** to assign the role.
6376

@@ -73,7 +86,7 @@ You can revoke a user's access to a Microsoft Playwright Testing workspace using
7386

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

76-
:::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.":::
89+
:::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":::
7790

7891
1. Select **Yes** in the confirmation window to remove the role assignment.
7992

@@ -109,7 +122,7 @@ Perform the following steps to manage permissions with a custom role:
109122

110123
1. Select the `microsoft.playwrightservice/accounts/write` permission, and then select **Add**.
111124

112-
:::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.":::
125+
:::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":::
113126

114127
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.
115128

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

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,51 @@
22
title: Optimize regional latency
33
description: Learn how to optimize regional latency for a Microsoft Playwright Testing Preview workspace. Choose to run tests on remote browsers in an Azure region nearest to you, or in a fixed region.
44
ms.topic: how-to
5-
ms.date: 09/27/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

99
# Optimize regional latency for a workspace in Microsoft Playwright Testing Preview
1010

1111
Learn how to minimize the network latency between the client machine and the remote browsers for a Microsoft Playwright Testing Preview workspace.
1212

13-
Microsoft Playwright Testing lets you run your Playwright tests on hosted browsers in the Azure region that's nearest to your client machine (*region affinity*). The service collects the test results in the Azure region of the remote browsers, and then transfers the results to the workspace region.
13+
Microsoft Playwright Testing lets you run your Playwright tests on hosted browsers in the Azure region that's nearest to your client machine. The service collects the test results in the Azure region of the remote browsers, and then transfers the results to the workspace region.
1414

1515
By default, when you create a new workspace, the service runs tests in an Azure region closest to the client machine. When you disable this setting on the workspace, the service uses remote browsers in the Azure region of the workspace.
1616

1717
> [!IMPORTANT]
1818
> Microsoft Playwright Testing is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
1919
20-
## Configure region affinity for a workspace
20+
## Configure regional settings for a workspace
2121

22-
You can configure the region affinity setting on the workspace in the Azure portal.
22+
You can configure the regional settings for your workspace in the Azure portal.
2323

24-
1. Sign in to the [Azure portal](https://portal.azure.com/).
24+
1. Sign in to the [Playwright portal](https://aka.ms/mpt/portal) with your Azure account.
2525

26-
1. Go to your Microsoft Playwright Testing workspace.
26+
1. Select the workspace settings icon, and then go to the **General** page to view the workspace settings.
2727

28-
1. Select **Regional Affinity** in the left pane.
28+
:::image type="content" source="./media/how-to-optimize-regional-latency/playwright-testing-general-settings.png" alt-text="Screenshot that shows the workspace settings page in the Playwright Testing portal." lightbox="./media/how-to-optimize-regional-latency/playwright-testing-general-settings.png":::
2929

30-
:::image type="content" source="./media/how-to-optimize-regional-latency/configure-workspace-region-affinity.png" alt-text="Screenshot that shows the Regional Affinity page in the Azure portal.":::
30+
1. Select **Select region** to go to your workspace in the Azure portal.
3131

32-
1. Enable or disable region affinity for the workspace by selecting the corresponding action.
32+
Alternately, you can go directly to the Azure portal and select your workspace:
3333

34-
By default, region affinity is enabled when you create a new workspace.
34+
1. Sign in to the [Azure portal](https://portal.azure.com/).
35+
1. Enter **Playwright Testing** in the search box, and then select **Playwright Testing** in the **Services** category.
36+
1. Select your Microsoft Playwright Testing workspace from the list.
37+
38+
1. In your workspace, select **Region Management** in the left pane.
39+
40+
:::image type="content" source="./media/how-to-optimize-regional-latency/configure-workspace-region-management.png" alt-text="Screenshot that shows the Region Management page in the Azure portal." lightbox="./media/how-to-optimize-regional-latency/configure-workspace-region-management.png":::
41+
42+
1. Choose the corresponding region selection option.
43+
44+
By default, the service uses remote browsers in the Azure region that's closest to the client machine to minimize latency.
3545

3646
## Related content
3747

3848
- Learn more about how to [determine the optimal configuration for optimizing test suite completion](./concept-determine-optimal-configuration.md).
49+
3950
- [Manage a Microsoft Playwright Testing workspace](./how-to-manage-playwright-workspace.md)
51+
4052
- [Understand how Microsoft Playwright Testing works](./overview-what-is-microsoft-playwright-testing.md#how-it-works)

articles/playwright-testing/how-to-test-local-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Use remote browsers for local applications
33
description: Learn how to run end-to-end for locally deployed applications with Microsoft Playwright Testing Preview. Use cloud-hosted browsers to test apps on localhost or private networks.
44
ms.topic: how-to
5-
ms.date: 09/27/2023
5+
ms.date: 10/04/2023
66
ms.custom: playwright-testing-preview
77
---
88

0 commit comments

Comments
 (0)