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.getStarted();
|
||||||
await this.pomLink.click();
|
await this.pomLink.click();
|
||||||
}
|
}
|
||||||
}```
|
}
|
||||||
|
```
|
||||||
|
|
||||||
```js js-flavor=ts
|
```js js-flavor=ts
|
||||||
// playwright-dev-page.ts
|
// playwright-dev-page.ts
|
||||||
|
|
@ -71,7 +72,8 @@ export class PlaywrightDevPage {
|
||||||
await this.getStarted();
|
await this.getStarted();
|
||||||
await this.pomLink.click();
|
await this.pomLink.click();
|
||||||
}
|
}
|
||||||
}```
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Now we can use the `PlaywrightDevPage` class in our tests.
|
Now we can use the `PlaywrightDevPage` class in our tests.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue