mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: fix js example formatting (#12635)
This commit is contained in:
parent
d49843edaa
commit
5f1188d195
@ -37,7 +37,8 @@ exports.PlaywrightDevPage = class PlaywrightDevPage {
|
||||
await this.getStarted();
|
||||
await this.pomLink.click();
|
||||
}
|
||||
}```
|
||||
}
|
||||
```
|
||||
|
||||
```js js-flavor=ts
|
||||
// playwright-dev-page.ts
|
||||
@ -71,7 +72,8 @@ export class PlaywrightDevPage {
|
||||
await this.getStarted();
|
||||
await this.pomLink.click();
|
||||
}
|
||||
}```
|
||||
}
|
||||
```
|
||||
|
||||
Now we can use the `PlaywrightDevPage` class in our tests.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user