Open
Description
openedon Oct 11, 2024
Version
1.42.1
Steps to reproduce
- Open an Electron BaseWindow
new BaseWindow({...})
- Capture Window as Playwright Page
const page = await electronApp.waitForEvent('window');
- In Electron close the BaseWindow -
window.close();
- Assert
page.isClosed
orawait page.waitForEvent('close')
Expected behavior
- Electron should recognize the window is closed
Actual behavior
- Electron thinks the window is open
Additional context
Using https://www.npmjs.com/package/electron-playwright-helpers and running against a package electron app
Environment
System:
OS: macOS 14.6.1
CPU: (11) arm64 Apple M3 Pro
Memory: 6.16 GB / 36.00 GB
Binaries:
Node: 18.18.1 - ~/.nvm/versions/node/v18.18.1/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.18.1/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.1/bin/npm
IDEs:
VSCode: 1.93.1 - /usr/local/bin/code
Languages:
Bash: 3.2.57 - /bin/bash
npmPackages:
@playwright/test: ^1.42.1 => 1.45.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment