Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back Playwright-Electron Workbench's on-failure screenshot + new PLAYWRIGHT_RECORD_VIDEO #5464

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lf94
Copy link
Contributor

@lf94 lf94 commented Feb 22, 2025

The on-failure screenshot was broken in the Playwright-Electron's Workbench. After an f-ton of looking (2.5 days) at Playwright source code I've been able to restore this, but unfortunately the Timeline is still broken. While I believe I have an idea of why the Timeline is still broken, I don't advise myself to continue to use cycles on this problem.

As an alternative, I've devised a way for users to be able to record videos on particular tests if they wish, with a new envvar called PLAYWRIGHT_RECORD_VIDEO. Set it to anything, and it will record videos into Playwright's snapshot directory. Only use this for a narrow set of tests.

Because this is somewhat still broken I'm not going to document this - we are still going to push for people to use the chrome:test when needing to debug further.

Copy link

qa-wolf bot commented Feb 22, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Feb 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Feb 22, 2025 8:16pm

Copy link

codecov bot commented Feb 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.02%. Comparing base (d78648f) to head (186510a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5464      +/-   ##
==========================================
- Coverage   86.04%   86.02%   -0.03%     
==========================================
  Files          95       95              
  Lines       35754    35754              
==========================================
- Hits        30766    30757       -9     
- Misses       4988     4997       +9     
Flag Coverage Δ
wasm-lib 86.02% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lf94
Copy link
Contributor Author

lf94 commented Feb 22, 2025

Took a million years but CI is green now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant