Skip to content

[Bug]: Electron Base Window Close but Playwright does not think it is #33066

Open

Description

Version

1.42.1

Steps to reproduce

  1. Open an Electron BaseWindow new BaseWindow({...})
  2. Capture Window as Playwright Page const page = await electronApp.waitForEvent('window');
  3. In Electron close the BaseWindow - window.close();
  4. Assert page.isClosed or await page.waitForEvent('close')

Expected behavior

  1. Electron should recognize the window is closed

Actual behavior

  1. 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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions