Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fix js example formatting (#12635)

Yury Semikhatsky5f1188d195c0
diff --git a/docs/src/test-pom-js.md b/docs/src/test-pom-js.md
index c900098fa9..d70a11022f 100644
--- a/docs/src/test-pom-js.md
+++ b/docs/src/test-pom-js.md
@@ -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.