fix(electron): enable screenshot-on-failure for Electron apps#40058
fix(electron): enable screenshot-on-failure for Electron apps#40058Glisa060 wants to merge 1 commit intomicrosoft:mainfrom
Conversation
@microsoft-github-policy-service agree |
Test results for "tests 1"9 failed 4 flaky39144 passed, 846 skipped Merge workflow run. |
Test results for "MCP"6 failed 6423 passed, 383 skipped Merge workflow run. |
6b321b1 to
01a3540
Compare
01a3540 to
aaff8ba
Compare
You are right The test-failed-1.png wasn't generated because the old code's "runAfterCreateBrowserContext" call interfered with the screenshot capture lifecycle. After the fix (removing that call), the test passes locally. New CI run, that will be the real confirmation. My new commit fixes the 5 failing tests in playwright.artifacts.spec.ts. |
Summary
Playwright._electronAppsso_allContexts()includes Electron contextsscreenshot: 'only-on-failure'to capture Electron windows on test failureUpdate
runAfterCreateBrowserContextcall that caused tracing conflicts with Electron contextscc: @pavelfeldman