Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Playwright tests failing to launch due to internal assertion error in Node.js | GoodFirstPicks

Playwright tests failing to launch due to internal assertion error in Node.js

nodejs/node 1 comments 27d ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeTest focusedNode.jsJavaScript

Why this is a good first issue

Playwright tests failing with undefined property error during cleanup

AI Summary

The issue involves Playwright tests failing during cleanup with an undefined property error. The maintainer suggests it might be related to Electron version mismatch. The problem appears reproducible but requires investigation into test environment setup and potential version conflicts.

Issue Description

Version

V22.14.0

Platform

Darwin mac.lan 25.3.0 Darwin Kernel Version 25.3.0: Wed Jan 28 20:53:31 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T8122 arm64

Subsystem

No response

What steps will reproduce the bug?

running npx playwright test --config=playwright.config.js

How often does it reproduce? Is there a required condition?

it happens for each playwright test everytime I try to run my playwrights tests

What is the expected behavior? Why is that the expected behavior?

The tests should run.

What do you see instead?

mark@mac lumen-desktop % npx playwright test --config=playwright.config.ts

Running 110 tests using 1 worker
[chromium] › tests/app.spec.ts:31:1 › Main window state
Error in afterAll cleanup: TypeError: Cannot read properties of undefined (reading 'firstWindow')
    at Module.tearDownTestEnv (file:///Users/mark/WebstormProjects/lumen/client/lumen-desktop/tests/test-environment-helpers.ts:54:25)
    at file:///Users/mark/WebstormProjects/lumen/client/lumen-desktop/tests/app.spec.ts:21:22
    at /Users/mark/WebstormProjects/lumen/client/lumen-desktop/node_modules/@playwright/test/node_modules/playwright/lib/worker/fixtureRunner.js:232:52
    at /Users/mark/WebstormProjects/lumen/client/lumen-desktop/node_modules/@playwright/test/node_modules/playwright/lib/worker/testInfo.js:320:17
    at TimeoutManager.withRunnable (/Users/mark/WebstormProjects/lumen/client/lumen-desktop/node_modules/@playwright/test/node_modules/playwright/lib/worker/timeoutManager.js:68:9)
    at TestInfoImpl._runWithTimeout (/Users/mark/WebstormProjects/lumen/client/lumen-desktop/node_modules/@playwright/test/node_modules/playwright/lib/worker/testInfo.js:318:34)
    at FixtureRunner.resolveParametersAndRunFunction (/Users/mark/WebstormProjects/lumen/client/lumen-desktop/node_modules/@playwright/test/node_modules/playwright/lib/worker/fixtureRunner.js:232:20)
    at /Users/mark/WebstormProjects/lumen/client/lumen-desktop/nod

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 15 points when you complete it!

Risk Flags

  • Electron version mismatch
  • playwright configuration
Loading labels...

Details

Points15 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedyes