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: docs/src/best-practices-js.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,13 +151,13 @@ This will open a new browser window as well as the Playwright inspector. To pick
151
151
152
152
You can then hover over any element on your page in the browser window and see the locator highlighted below your cursor. Clicking on an element will add the locator into the Playwright inspector. You can either copy the locator and paste into your test file or continue to explore the locator by editing it in the Playwright Inspector, for example by modifying the text, and seeing the results in the browser window.
153
153
154
-
<imgwidth="1394"alt="generating locators with codegen"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212103268-e7d8ee8b-d307-4cba-be13-831f3fbb1f40.png" />
154
+
<imgheight="1274"width="2788"alt="generating locators with codegen"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212103268-e7d8ee8b-d307-4cba-be13-831f3fbb1f40.png" />
155
155
156
156
#### Use the VS Code extension to generate locators
157
157
158
158
You can also use the [VS Code Extension](./getting-started-vscode.md) to generate locators as well as record a test. The VS Code extension also gives you a great developer experience when writing, running, and debugging tests.
159
159
160
-
<imgwidth="1394"alt="generating locators in vs code with codegen"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212269873-aca04043-16ce-4627-906f-7351d09740ab.png" />
160
+
<imgheight="1684"width="2788"alt="generating locators in vs code with codegen"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212269873-aca04043-16ce-4627-906f-7351d09740ab.png" />
For local debugging we recommend you [debug your tests live in VSCode.](./getting-started-vscode.md#debugging-your-tests) by installing the [VS Code extension](./getting-started-vscode.md). You can run tests in debug mode by right-clicking on the line next to the test you want to run which will open a browser window and pause at where the breakpoint is set.
195
195
196
-
<imgwidth="1338"alt="debugging tests in vscode"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212274675-5c6e1647-2aab-40fd-9804-8680c1ac2d16.png" />
196
+
<imgheight="1240"width="2676"alt="debugging tests in vscode"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212274675-5c6e1647-2aab-40fd-9804-8680c1ac2d16.png" />
197
197
198
198
You can live debug your test by clicking or editing the locators in your test in VS Code which will highlight this locator in the browser window as well as show you any other matching locators found on the page.
199
199
200
-
<imgwidth="1394"alt="live debugging locators in vscode"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212273189-da271dc4-0f59-4138-92a8-10e719066cbe.png" />
200
+
<imgheight="1404"width="2788"alt="live debugging locators in vscode"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212273189-da271dc4-0f59-4138-92a8-10e719066cbe.png" />
201
201
202
202
You can also debug your tests with the Playwright inspector by running your tests with the `--debug` flag.
203
203
@@ -238,7 +238,7 @@ pnpm exec playwright test --debug
238
238
239
239
You can then step through your test, view actionability logs and edit the locator live and see it highlighted in the browser window. This will show you which locators match, how many of them there are.
240
240
241
-
<imgwidth="1350"alt="debugging with the playwright inspector"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212276296-4f5b18e7-2bd7-4766-9aa5-783517bd4aa2.png" />
241
+
<imgheight="1736"width="2700"alt="debugging with the playwright inspector"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212276296-4f5b18e7-2bd7-4766-9aa5-783517bd4aa2.png" />
242
242
243
243
244
244
@@ -282,7 +282,7 @@ pnpm exec playwright test example.spec.ts:9 --debug
282
282
283
283
For CI failures, use the Playwright [trace viewer](./trace-viewer.md) instead of videos and screenshots. The trace viewer gives you a full trace of your tests as a local Progressive Web App (PWA) that can easily be shared. With the trace viewer you can view the timeline, inspect DOM snapshots for each action using dev tools, view network requests and more.
Traces are configured in the Playwright config file and are set to run on CI on the first retry of a failed test. We don't recommend setting this to `on` so that traces are run on every test as it's very performance heavy. However you can run a trace locally when developing with the `--trace` flag.
<imgwidth="1516"alt="Playwrights HTML report"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212279022-d929d4c0-2271-486a-a75f-166ac231d25f.png" />
361
+
<imgheight="1920"width="3032"alt="Playwrights HTML report"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212279022-d929d4c0-2271-486a-a75f-166ac231d25f.png" />
362
362
363
363
Traces can be opened by clicking on the icon next to the test file name or by opening each of the test reports and scrolling down to the traces section.
364
364
365
-
<imgwidth="1516"alt="Screenshot 2023-01-13 at 09 58 34"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212279699-c9eb134f-4f4e-4f19-805c-37596d3272a6.png" />
365
+
<imgheight="2242"width="3032"alt="Screenshot 2023-01-13 at 09 58 34"loading="lazy"src="https://user-images.githubusercontent.com/13063165/212279699-c9eb134f-4f4e-4f19-805c-37596d3272a6.png" />
Copy file name to clipboardExpand all lines: docs/src/ci-intro.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,7 +181,7 @@ Once you have your [GitHub Actions workflow](#setting-up-github-actions) setup,
181
181
######
182
182
* langs: js, java, python
183
183
184
-
<img width="861" alt="Create a Repo and Push to GitHub" src="https://user-images.githubusercontent.com/13063165/183423254-d2735278-a2ab-4d63-bb99-48d8e5e447bc.png"/>
184
+
<img height="745" width="1721" alt="Create a Repo and Push to GitHub" src="https://user-images.githubusercontent.com/13063165/183423254-d2735278-a2ab-4d63-bb99-48d8e5e447bc.png"/>
185
185
186
186
187
187
######
@@ -205,7 +205,7 @@ Click on the **Actions** tab to see the workflows. Here you see if your tests ha
205
205
206
206
On Pull Requests you can also click on the **Details** link in the [PR status check](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks).
207
207
208
-
<img width="645" alt="pr status checked" src="https://user-images.githubusercontent.com/13063165/183722462-17a985db-0e10-4205-b16c-8aaac36117b9.png" />
208
+
<img height="404" width="1290" alt="pr status checked" src="https://user-images.githubusercontent.com/13063165/183722462-17a985db-0e10-4205-b16c-8aaac36117b9.png" />
209
209
210
210
211
211
## Viewing Test Logs
@@ -233,7 +233,7 @@ The HTML Report shows you a full report of your tests. You can filter the report
233
233
234
234
In the Artifacts section, click on the **playwright-report** to download your report in the format of a zip file.
235
235
236
-
<img width="972" alt="Downloading the HTML Report" src="https://user-images.githubusercontent.com/13063165/183437023-524f1803-84e4-4862-9ce3-1d55af0e023e.png" />
236
+
<img height="1245" width="1943" alt="Downloading the HTML Report" src="https://user-images.githubusercontent.com/13063165/183437023-524f1803-84e4-4862-9ce3-1d55af0e023e.png" />
0 commit comments