tools: smoke test (every page in a hidden browser) #4

Closed
skizy wants to merge 1 commit from skizy/smoke-test into main
Member

A safety net before the clean-up: tools/smoke.py opens every page of the site in a hidden browser, the way a visitor would, and reports anything that goes wrong: script errors, and the site's own files that fail to load.

It visits the sea, the workshop, the rooftop, the living space and its six side rooms, the template, Mel's room and the view through her window, in whichever resets you ask for (a brand-new visitor for each reset, using ?reset=N).

python tools/smoke.py                  every page, in reset 1
python tools/smoke.py --resets 1-8     every page, in every reset (a few minutes)
python tools/smoke.py --shots shots    also saves a picture of every page

Needs Playwright once: pip install playwright, then python -m playwright install chromium. Nothing shows on screen, it serves the site itself on its own port, and it never changes a file. Fonts, the weather and Mel's live site on the CRT come from elsewhere and don't count. The grimoire's list.txt 404 (expected on your own computer until a publish) is skipped.

Today: all 8 resets, 104 page loads, all good.

It only checks that pages load cleanly. It doesn't click through scenes yet; checks for specific features can be added as the clean-up touches them.

🤖 Generated with Claude Code

A safety net before the clean-up: **`tools/smoke.py`** opens every page of the site in a hidden browser, the way a visitor would, and reports anything that goes wrong: script errors, and the site's own files that fail to load. It visits the sea, the workshop, the rooftop, the living space and its six side rooms, the template, Mel's room and the view through her window, in whichever resets you ask for (a brand-new visitor for each reset, using `?reset=N`). ``` python tools/smoke.py every page, in reset 1 python tools/smoke.py --resets 1-8 every page, in every reset (a few minutes) python tools/smoke.py --shots shots also saves a picture of every page ``` Needs Playwright once: `pip install playwright`, then `python -m playwright install chromium`. Nothing shows on screen, it serves the site itself on its own port, and it never changes a file. Fonts, the weather and Mel's live site on the CRT come from elsewhere and don't count. The grimoire's `list.txt` 404 (expected on your own computer until a publish) is skipped. **Today: all 8 resets, 104 page loads, all good.** It only checks that pages load cleanly. It doesn't click through scenes yet; checks for specific features can be added as the clean-up touches them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tools/smoke.py opens every page and room (the sea, the workshop, the
rooftop, the living space and its side rooms, the template, Mel's room
and her window) in a hidden browser, in any resets you ask for, and
reports script errors and the site's own files that fail to load.
Optionally saves a picture of every page. Needs Playwright.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
V closed this pull request 2026-09-27 07:56:05 -07:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
subdomains/DaV-nky!4
No description provided.