Skip to content

R35-T040: Verify screenshot arguments - #130

Open
suraj-3010 wants to merge 1 commit into
S-AI-Projects:mainfrom
suraj-3010:student/e26b07f1007/R35-T040
Open

suraj-3010 wants to merge 1 commit into
S-AI-Projects:mainfrom
suraj-3010:student/e26b07f1007/R35-T040

Conversation

@suraj-3010

@suraj-3010 suraj-3010 commented Nov 22, 2026 •

Copy link
Copy Markdown

Description

This PR strengthens tests for HTML to Images by checking the exact HTML, filename, CSS arguments, screenshot call count, and source-file preservation without starting a browser.

Related Issue

Fixes: #40

Type of Change

  • Tests
  • Documentation

Changes Made

  • Added a smallest-input test for <p>x</p> with an empty background.
  • Added an ordinary-input test for HTML containing Hello and the lightblue background.
  • Mocked Html2Image and interactive input, and used temporary HTML files.
  • Added a runner and evidence file under work/R35-T040/.
  • Verified mutation sensitivity by changing the empty-background condition in a temporary copy only; the same regression assertion failed as expected.
  • No implementation change was needed because the original behavior passed the expected cases.

Screenshots / Recordings

No UI changes; the browser and screenshot generation are mocked.

Testing

Ran:

python3 work/R35-T040/check.py

Result: 2 tests passed against the original implementation. The temporary mutant failed the named empty-background assertion, as expected.

Checklist

  • I have tested my changes locally.
  • I have added or updated tests, if needed.
  • I have updated documentation, if needed.
  • I have followed the project coding guidelines.
  • I have run the relevant tests and checks.

Additional Notes

The test file matches the repository ignore rule test* and was explicitly included in this PR. No mutation remains in the source.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@suraj-3010 suraj-3010 changed the title test(html-images): verify screenshot arguments Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant