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/playwright-testing/concept-determine-optimal-configuration.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
@@ -2,7 +2,7 @@
2
2
title: Optimal test suite configuration
3
3
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.
Copy file name to clipboardExpand all lines: articles/playwright-testing/how-to-manage-access-tokens.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
@@ -2,7 +2,7 @@
2
2
title: Manage workspace access tokens
3
3
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.
4
4
ms.topic: how-to
5
-
ms.date: 09/27/2023
5
+
ms.date: 10/04/2023
6
6
ms.custom: playwright-testing-preview
7
7
---
8
8
@@ -43,9 +43,11 @@ To view the list of workspace access tokens:
43
43
44
44
1. Select the settings icon on the home page to go to the workspace settings.
45
45
46
+
1. Select the **Access tokens** page to view the list of access tokens.
47
+
46
48
The **Access tokens** page displays the list of access tokens for the workspace.
47
49
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":::
49
51
50
52
## Generate a workspace access token
51
53
@@ -63,17 +65,17 @@ To create a new workspace access token:
63
65
64
66
1. On the **Access tokens** page, select **Generate new token**.
65
67
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":::
67
69
68
70
1. Enter the access token details, and then select **Generate token**.
69
71
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":::
71
73
72
74
1. Copy the access token for the workspace.
73
75
74
76
You can save the access token in a CI/CD secrets store or use it in an environment variable for running tests interactively.
75
77
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":::
77
79
78
80
> [!IMPORTANT]
79
81
> 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
93
95
94
96
1. On the **Access tokens** page, select **Delete** next to the access token that you want to delete.
95
97
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":::
97
99
98
100
1. Select **Delete** on the deletion confirmation page.
Copy file name to clipboardExpand all lines: articles/playwright-testing/how-to-manage-playwright-workspace.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Manage workspaces
3
3
description: Learn how to create and manage Microsoft Playwright Testing workspaces. Use the Playwright portal or Azure portal to manage workspaces.
4
4
ms.topic: how-to
5
-
ms.date: 08/29/2023
5
+
ms.date: 10/04/2023
6
6
ms.custom: playwright-testing-preview
7
7
---
8
8
@@ -34,7 +34,7 @@ To get started with running your Playwright tests on cloud browsers, you first c
34
34
35
35
# [Playwright portal](#tab/playwright)
36
36
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.
38
38
39
39
[!INCLUDE [Create workspace in Playwright portal](./includes/include-playwright-portal-create-workspace.md)]
40
40
@@ -46,18 +46,17 @@ When you create a workspace in the Playwright portal, a new resource group and a
46
46
:::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":::
47
47
48
48
1. Enter *Microsoft Playwright Testing* in the search box.
1. Select the **Microsoft Playwright Testing (Preview)** card, and then select **Create**.
50
50
51
51
:::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":::
52
52
53
-
1. On the Microsoft Playwright Testing page, select **Create**.
54
53
1. Provide the following information to configure a new Microsoft Playwright Testing workspace:
55
54
56
55
|Field |Description |
57
56
|---------|---------|
58
57
|**Subscription**| Select the Azure subscription that you want to use for this Microsoft Playwright Testing workspace. |
59
58
|**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. |
61
60
|**Location**| Select a geographic location to host your workspace. <BR>This location also determines where the test execution results and related artifacts are stored. |
62
61
63
62
> [!NOTE]
@@ -131,7 +130,7 @@ To view the list of test runs in the Playwright portal:
131
130
132
131
1. On the workspace home page, you can view the workspace activity log.
133
132
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":::
135
134
136
135
## Delete a workspace
137
136
@@ -155,7 +154,9 @@ To delete a Playwright workspace:
155
154
# [Azure portal](#tab/portal)
156
155
157
156
1. Sign in to the [Azure portal](https://portal.azure.com/).
157
+
158
158
1. Navigate to your Playwright workspace.
159
+
159
160
1. Select **Delete** to delete the workspace.
160
161
161
162
:::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:
167
168
168
169
## Related content
169
170
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)
Copy file name to clipboardExpand all lines: articles/playwright-testing/how-to-manage-workspace-access.md
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Manage workspace access
3
3
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.
4
4
ms.topic: how-to
5
-
ms.date: 08/29/2023
5
+
ms.date: 10/04/2023
6
6
ms.custom: playwright-testing-preview
7
7
---
8
8
@@ -39,25 +39,38 @@ Microsoft Playwright Testing workspaces uses three Azure built-in roles. To gran
39
39
40
40
You can grant a user access to a Microsoft Playwright Testing workspace by using the Azure portal:
41
41
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.
43
43
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.
45
45
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":::
47
47
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":::
49
62
50
63
1. On the **Role** tab, select **Privileged administrator** roles.
51
64
52
65
1. Select one of the Microsoft Playwright Testing [default roles](#default-roles), and then select **Next**.
53
66
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":::
55
68
56
69
1. On the **Members** tab, make sure **User, group, or service principal** is selected.
57
70
58
71
1. Select **Select members**, find and select the users, groups, or service principals.
59
72
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":::
61
74
62
75
1. Select **Review + assign** to assign the role.
63
76
@@ -73,7 +86,7 @@ You can revoke a user's access to a Microsoft Playwright Testing workspace using
73
86
74
87
1. In the list of role assignments, add a checkmark next to the user and role you want to remove, and then select **Remove**.
75
88
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":::
77
90
78
91
1. Select **Yes** in the confirmation window to remove the role assignment.
79
92
@@ -109,7 +122,7 @@ Perform the following steps to manage permissions with a custom role:
109
122
110
123
1. Select the `microsoft.playwrightservice/accounts/write` permission, and then select **Add**.
111
124
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":::
113
126
114
127
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/playwright-testing/how-to-optimize-regional-latency.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,39 +2,51 @@
2
2
title: Optimize regional latency
3
3
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.
4
4
ms.topic: how-to
5
-
ms.date: 09/27/2023
5
+
ms.date: 10/04/2023
6
6
ms.custom: playwright-testing-preview
7
7
---
8
8
9
9
# Optimize regional latency for a workspace in Microsoft Playwright Testing Preview
10
10
11
11
Learn how to minimize the network latency between the client machine and the remote browsers for a Microsoft Playwright Testing Preview workspace.
12
12
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.
14
14
15
15
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.
16
16
17
17
> [!IMPORTANT]
18
18
> 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/).
19
19
20
-
## Configure region affinity for a workspace
20
+
## Configure regional settings for a workspace
21
21
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.
23
23
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.
25
25
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.
27
27
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":::
29
29
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.
31
31
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:
33
33
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.
35
45
36
46
## Related content
37
47
38
48
- Learn more about how to [determine the optimal configuration for optimizing test suite completion](./concept-determine-optimal-configuration.md).
49
+
39
50
-[Manage a Microsoft Playwright Testing workspace](./how-to-manage-playwright-workspace.md)
51
+
40
52
-[Understand how Microsoft Playwright Testing works](./overview-what-is-microsoft-playwright-testing.md#how-it-works)
Copy file name to clipboardExpand all lines: articles/playwright-testing/how-to-test-local-applications.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
@@ -2,7 +2,7 @@
2
2
title: Use remote browsers for local applications
3
3
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.
0 commit comments