Skip to content

Comments

Fix Playwright timeout not capturing video#20

Merged
lewispb merged 1 commit intomainfrom
fix-playwright-timeout-video-capture
Feb 13, 2026
Merged

Fix Playwright timeout not capturing video#20
lewispb merged 1 commit intomainfrom
fix-playwright-timeout-video-capture

Conversation

@lewispb
Copy link
Member

@lewispb lewispb commented Feb 13, 2026

Summary

  • When page.close raises during cleanup (e.g. browser disconnected after a timeout), the remaining ensure steps — context.close and the save_video callback — were skipped entirely, losing the video recording
  • Rescue each cleanup step independently so video capture always runs

Test plan

  • Existing Playwright probe tests pass
  • Deploy and verify that timed-out probes now have video artifacts attached

🤖 Generated with Claude Code

When page.close raises (e.g. browser disconnected after a timeout), the
remaining ensure steps—context.close and the save_video callback—were
skipped entirely, losing the video recording. Rescue each cleanup step
independently so video capture always runs.
@lewispb lewispb merged commit f2df316 into main Feb 13, 2026
3 checks passed
@lewispb lewispb deleted the fix-playwright-timeout-video-capture branch February 16, 2026 13:42
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