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 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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. |
Test results for "tests 1"5 failed 8 flaky39182 passed, 846 skipped Merge workflow run. |
Test results for "MCP"6468 passed, 383 skipped Merge workflow run. |
d04f35b to
d97b3ee
Compare
d97b3ee to
0222c00
Compare
|
@pavelfeldman CI failure was due to |
Summary
Playwright._electronAppsso_allContexts()includes Electron contextsscreenshot: 'only-on-failure'to capture Electron windows on test failureUpdate
runAfterCreateBrowserContextcall that caused tracing conflicts with Electron contextsplaywright.artifacts.spec.tsintegration test (always skipped in CI due toELECTRON_SKIP_BINARY_DOWNLOAD=1)tests/electron/electron-app.spec.tsthat run in the electron CI job