Skip to content

Commit 4ef8d66

Browse files
committed
improve docs
1 parent 9297118 commit 4ef8d66

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

articles/playwright-testing/includes/include-playwright-portal-view-test-results.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@ ms.date: 09/23/2024
77
---
88

99

10-
1. To see the test results and artifacts on Playwright portal, open the link generated at the end of test run in the console. The portal contains the CI information, test run status, and commit ID associated with the test run.
10+
1. After your test run completes, a link to the Playwright Portal is generated. Click this link to view detailed test results and associated artifacts. The portal displays essential information, including:
11+
- CI build details
12+
- Overall test run status
13+
- The commit ID linked to the test run
1114

1215
:::image type="content" source="../media/include-playwright-portal-view-test-results/playwright-testing-open-test-run.png" alt-text="Screenshot that shows list of tests in the test run." lightbox="../media/include-playwright-portal-view-test-results/playwright-testing-open-test-run.png":::
1316

14-
3. Open any failed test to see all the required information to troubleshoot. Switch between retries, see error logs, test steps, and attachments such as screenshots and video. Navigate to the trace viewer from here.
17+
3. The Playwright Portal provides all the necessary information for troubleshooting. You can:
18+
- Switch between retries.
19+
- View detailed error logs, test steps, and attached artifacts such as screenshots or videos.
20+
- Navigate directly to the **Trace Viewer** for deeper analysis.
1521

1622
:::image type="content" source="../media/include-playwright-portal-view-test-results/playwright-testing-open-test.png" alt-text="Screenshot that shows the preview of a test" lightbox="../media/include-playwright-portal-view-test-results/playwright-testing-open-test.png":::
1723

18-
4. Use the trace viewer to visually step through your test execution, or use the timeline to hover over steps and reveal the page state before and after each action. Detailed logs, DOM snapshot, network activity, errors, and console output are available at each test step.
24+
4. The Trace Viewer allows you to step through your test execution visually. You can:
25+
- Use the timeline to hover over individual steps, revealing the page state before and after each action.
26+
- Inspect detailed logs, DOM snapshots, network activity, errors, and console output for each step.
1927

2028
:::image type="content" source="../media/include-playwright-portal-view-test-results/playwright-testing-trace-viewer.png" alt-text="Screenshot that shows the trace viewer" lightbox="../media/include-playwright-portal-view-test-results/playwright-testing-trace-viewer.png":::
2129

articles/playwright-testing/quickstart-generate-rich-reports-for-tests.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,20 @@ This generates `playwright.service.config.ts` file which serves to:
4545

4646
If you already have this file, the package asks you to override it.
4747

48-
Once you have the `playwright.service.config.ts` file, disable cloud-hosted browsers.
48+
To use only reporting feature for the test run, disable cloud-hosted browsers by setting `useCloudHostedBrowsers` as false.
4949

5050
```typescript
51-
useCloudHostedBrowsers: false
51+
export default defineConfig(
52+
config,
53+
getServiceConfig(config, {
54+
timeout: 30000,
55+
os: ServiceOS.LINUX,
56+
useCloudHostedBrowsers: false // Do not use cloud hosted browsers
57+
}),
58+
{
59+
reporter: [['list'], ['@azure/microsoft-playwright-testing/reporter']], // Reporter for Microsoft Playwright Testing service
60+
}
61+
);
5262
```
5363
Setting this as `false` ensures that cloud-hosted browsers are not used to run the tests. The tests run on your local machine but the results and artifacts are published on the service.
5464

@@ -144,7 +154,7 @@ Test report: https://playwright.microsoft.com/workspaces/<workspace-id>/runs/<ru
144154
```
145155

146156
> [!CAUTION]
147-
> Depending on the size of your test suite, you might incur additional charges for the test minutes beyond your allotted free test minutes and free test results.
157+
> Depending on the size of your test suite, you might incur additional charges for the test results beyond your allotted free test results.
148158

149159
## View test runs and results in the Playwright portal
150160

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ To run a single Playwright test in Visual Studio Code with Microsoft Playwright
194194
You can now run multiple tests with the service, or run your entire test suite on remote browsers.
195195

196196
> [!CAUTION]
197-
> Depending on the size of your test suite, you might incur additional charges for the test minutes beyond your allotted free test minutes and free test results.
197+
> Depending on the size of your test suite, you might incur additional charges for the test minutes and test results beyond your allotted free test minutes and free test results.
198198

199199
### Run a full test suite at scale
200200

0 commit comments

Comments
 (0)