8000 fix(playwright): handle invalid screenshot files by vanshsainiprime · Pull Request #813 · gemini-testing/html-reporter · GitHub
[go: up one dir, main page]

Skip to content

fix(playwright): handle invalid screenshot files - #813

Open
vanshsainiprime wants to merge 1 commit into
gemini-testing:masterfrom
vanshsainiprime:master
Open

vanshsainiprime wants to merge 1 commit into
gemini-testing:masterfrom
vanshsainiprime:master

Conversation

@vanshsainiprime
Copy link
Copy Markdown

Description

Fixes an issue where an invalid or empty Playwright screenshot causes the HTML reporter to fail while processing image attachments.

If image-size cannot read the screenshot, the adapter now safely skips the invalid image instead of throwing.

Testing

  • Added a regression test for invalid image files.
  • npm run build:server passes.
  • Node unit tests pass, including the new regression test.
  • git diff --check passes.

This branch has not been deployed

No deployments
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

0