Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 7338fbd

Browse files
authored
bump: playwright to 1.1.1 (#145)
1 parent 840a66b commit 7338fbd

File tree

4 files changed

+97
-102
lines changed

4 files changed

+97
-102
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: 12.x
19-
- uses: actions/cache@v1
19+
- uses: actions/cache@v2
2020
with:
2121
path: ~/.npm
2222
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

package-lock.json

Lines changed: 86 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@
6464
"husky": "4.2.5",
6565
"jest": "26.0.1",
6666
"lint-staged": "10.2.10",
67-
"playwright": ">=0.12.1",
68-
"playwright-chromium": ">=0.12.1",
69-
"playwright-core": ">=0.12.1",
70-
"playwright-firefox": ">=0.12.1",
71-
"playwright-webkit": ">=0.12.1",
67+
"playwright": ">=1.1.1",
68+
"playwright-chromium": ">=1.1.1",
69+
"playwright-core": "npm:playwright-chromium@>=1.1.1",
7270
"prettier": "2.0.5",
7371
"snyk": "^1.339.3",
7472
"ts-jest": "26.1.0",

src/types.d.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import type {
2-
BrowserTypeLaunchOptions,
3-
BrowserNewContextOptions,
2+
LaunchOptions,
3+
BrowserContextOptions,
44
WebKitBrowser,
55
ChromiumBrowser,
66
FirefoxBrowser,
77
BrowserType as PlaywrightBrowserType,
8-
BrowserTypeConnectOptions,
9-
DeviceDescriptor,
8+
devices,
109
} from 'playwright-core'
1110
import type { JestDevServerOptions } from 'jest-dev-server'
1211
import { CHROMIUM, FIREFOX, IMPORT_KIND_PLAYWRIGHT, WEBKIT } from './constants'
@@ -30,22 +29,20 @@ export type SelectorType = {
3029
name: string
3130
}
3231

33-
type Devices = { [name: string]: DeviceDescriptor }
34-
3532
export interface Playwright {
3633
instance: GenericBrowser
37-
devices: Devices
34+
devices: typeof devices
3835
}
3936

4037
export type PlaywrightRequireType = BrowserType | typeof IMPORT_KIND_PLAYWRIGHT
4138

4239
export interface Config {
43-
launchBrowserApp?: BrowserTypeLaunchOptions
44-
context?: BrowserNewContextOptions
40+
launchBrowserApp?: LaunchOptions
41+
context?: BrowserContextOptions
4542
exitOnPageError: boolean
4643
browsers: BrowserType[]
4744
devices?: string[]
4845
server?: JestDevServerOptions
4946
selectors?: SelectorType[]
50-
connectBrowserApp?: BrowserTypeConnectOptions
47+
connectBrowserApp?: Parameters<GenericBrowser['connect']>[0]
5148
}

0 commit comments

Comments
 (0)