File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
packages/playwright-electron Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ This package contains the [Electron](https://www.electronjs.org/) flavor of [Pla
4
4
## How to demo
5
5
6
6
``` bash
7
- npm i --save-dev electron@beta
8
- npm i --save-dev playwright-electron@next
7
+ npm i --save-dev electron@beta playwright-electron
8
+ npx mocha
9
9
```
10
10
11
+
11
12
` index.js ` - main Electron application file.
12
13
``` js
13
14
const { app , BrowserWindow } = require (' electron' );
@@ -149,9 +150,6 @@ describe('Sanity checks', function () {
149
150
// BrowserWindow.
150
151
// https://playwright.dev/#path=docs%2Fapi.md&q=class-jshandle
151
152
await page .browserWindow .evaluate (browserWindow => browserWindow .maximize ());
152
- assert (await page .browserWindow .evaluate (browserWindow => browserWindow .isMaximized ()));
153
- await page .browserWindow .evaluate (browserWindow => browserWindow .unmaximize ());
154
- assert (! (await page .browserWindow .evaluate (browserWindow => browserWindow .isMaximized ())));
155
153
});
156
154
157
155
});
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " playwright-electron" ,
3
- "version" : " 0.2.0 " ,
3
+ "version" : " 0.2.2 " ,
4
4
"description" : " A high-level API to automate Electron" ,
5
5
"repository" : " github:Microsoft/playwright" ,
6
6
"homepage" : " https://playwright.dev" ,
You can’t perform that action at this time.
0 commit comments