Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/src/test-pom.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ We will create a `PlaywrightDevPage` helper class to encapsulate common operatio
```js js-flavor=js
// playwright-dev-page.js
exports.PlaywrightDevPage = class PlaywrightDevPage {
constructor(page: Page) {
constructor(page) {
/** @type {import('playwright').Page} */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just drop this line. JS means no types!

this.page = page;
}

Expand Down