Skip to content

Commit

Permalink
Replace pupeteer with playwright references
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Jan 27, 2024
1 parent ea659e3 commit 2c9fbc6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Add testing data to site objects like this:
],
// optional setup async function
testSetup: async (page) => {
// page is pupeteer page
// page is playwright page
// use this for initial page setup
},
// ...
Expand Down
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.41.1",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^10.0.1",
Expand Down Expand Up @@ -49,4 +49,4 @@
"url": "https://github.com/stefanw/bibbot/issues"
},
"homepage": "https://stefanw.github.io/bibbot/"
}
}
4 changes: 2 additions & 2 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Page } from 'puppeteer'
import { Page } from '@playwright/test'

declare global {
type PuppeteerPage = Page
type PlaywrightPage = Page
interface Window {
bibbotObserver?: MutationObserver
// random window stuff from news sites that we need to deal with
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export interface PartialSite {
paragraphStyle?: ParagraphStyle
source: SourceIdentifier
dateRange?: DateRange
testSetup?: (page: PuppeteerPage) => Promise<void>
testSetup?: (page: PlaywrightPage) => Promise<void>
examples?: TestExample[]
}

Expand Down

0 comments on commit 2c9fbc6

Please sign in to comment.