Skip to content

Commit bbfeb6e

Browse files
committed
docs(playwright): fix dead Playwright links
The playwright-electron README and src/server/deviceDescriptors.js no longer exist in the Playwright repo (master redirects to main, then 404), and playwright.dev returns 404 for class-browsertype/ and trace-viewer/ with a trailing slash.
1 parent 352466d commit bbfeb6e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/playwright.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ Scenario('I try to open this site as anonymous user', ({ I }) => {
259259
260260
## Electron Testing
261261

262-
CodeceptJS allows you to make use of [Playwright's Electron flavor](https://github.com/microsoft/playwright/blob/master/packages/playwright-electron/README.md).
263-
To use this functionality, all you need to do is set the browser to `electron` in the CodeceptJS configuration file and, according to the [Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype/#browsertypelaunchoptions), set the launch options to point to your Electron application.
262+
CodeceptJS allows you to make use of [Playwright's Electron flavor](https://playwright.dev/docs/api/class-electron).
263+
To use this functionality, all you need to do is set the browser to `electron` in the CodeceptJS configuration file and, according to the [Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype#browser-type-launch), set the launch options to point to your Electron application.
264264

265265
`main.js` - main Electron application file
266266

@@ -337,7 +337,7 @@ Playwright can emulate browsers of mobile devices. Instead of paying for expensi
337337

338338
Device emulation can be enabled in CodeceptJS globally in a config or per session.
339339

340-
Playwright contains a [list of predefined devices](https://github.com/microsoft/playwright/blob/master/src/server/deviceDescriptors.js) to emulate, for instance this is how you can enable iPhone 6 emulation for all tests:
340+
Playwright contains a [list of predefined devices](https://playwright.dev/docs/emulation#devices) to emulate, for instance this is how you can enable iPhone 6 emulation for all tests:
341341

342342
```js
343343
import { devices } from 'playwright';
@@ -539,7 +539,7 @@ The recording is attached to the test as `test.artifacts.screencast`; the `.srt`
539539
540540
## Trace
541541

542-
If video is not enough to descover why a test failed a [trace](https://playwright.dev/docs/trace-viewer/) can be recorded.
542+
If video is not enough to descover why a test failed a [trace](https://playwright.dev/docs/trace-viewer) can be recorded.
543543

544544
![](https://user-images.githubusercontent.com/220264/128403246-7e1b9b33-9ce2-42d5-b87b-b8749d5d7a78.png)
545545

0 commit comments

Comments
 (0)