Tests
There are two layers. A small automated smoke test checks the photo layout logic. Everything else, especially pasting into OneNote, is a manual checklist that someone has to run in a real browser. The status column is honest: Not run means nobody has done it yet.
1. Automated smoke test
File: tests/smoke.js. It loads the real page scripts in a simulated browser (jsdom) and checks the photo component.
cd tests npm i jsdom@24 --no-save node smoke.js
The install creates tests/node_modules, which is git-ignored. The script prints PASS or FAIL per check and exits non-zero on any failure.
| Check (on Vehicles and Hot Sheet) | Status |
|---|---|
| Card mounts with photo state | Pass |
| Empty card shows only the add box in the side stack | Pass |
| Side stack holds as many photos as fit the text height; the rest flow to the bottom, add box last | Pass |
| Photo list returns every photo, in order | Pass |
| Remove deletes one photo and the layout recalculates | Pass |
| Narrow screen puts everything in one row | Pass |
| Copy output contains every photo, in one row above the table | Pass |
Last run: 2026-12-01, all passing. The simulated browser does no real layout (the text height is faked), has no canvas (image resizing and the file picker are not exercised), and has no real clipboard. Those gaps are covered by the manual checks below. Re-run the smoke test after any change to assets/photo.js, assets/form.js or assets/hot-sheet.js.
2. Manual checklist
Run in current Chrome and Safari, and again on Windows if OneNote there is used. Record the result and the date.
All pages
| Check | Status |
|---|---|
| Index links to all ten pages; each page has an "All pages" link back | Not run |
| The "?" button opens How to use; the Specifications and Tests tabs work | Not run |
| Light and dark mode follow the system setting; text is readable in both | Not run |
| Copy for OneNote shows "Copied"; pasting into OneNote gives bordered tables with a bold title per card | Not run |
| Add creates a numbered card; Remove renumbers; the first card has no Remove | Not run |
| Clear all and a page reload both empty the form | Not run |
| Phone-width layout: no horizontal scroll, fields stack | Not run |
| Draft banner shows on Vehicles, Locations, Social Media, Flock / Vigalent, Notes and Warrant Info, and not on Case Intro, Violations, Hot Sheet or Subject Details | Not run |
Photos (Hot Sheet, Vehicles, Locations, Subject Details)
| Check | Status |
|---|---|
| Every card shows an empty box with a visible blue + Add photo button. Click the box, paste a copied image: it appears and a new empty box follows | Not run |
| After adding a photo, a new empty box with a + Add photo button appears directly after it (the empty box is always the last item); repeat three times | Not run |
| Select several files in the file picker: every file is added | Not run |
| After a paste, the empty box keeps focus so a second paste works immediately | Not run |
| Drag one image, then several images at once, onto the empty box | Not run |
| + Add photo opens the file picker and adds the chosen files; a large photo is shrunk (not stretched or distorted) | Not run |
| Photos stack down the left; once as tall as the fields, extras flow along the bottom; the add box is last | Not run |
| Making a text area taller or shorter re-flows the photos | Not run |
| The × removes only that photo and the rest re-flow | Not run |
| Narrow window: photos sit in one row above the fields | Not run |
| Pasting into OneNote on Mac: photos are kept, in one row above the table | Not run |
| Pasting into OneNote on Windows: photos are kept | Not run |
Page-specific
| Check | Status |
|---|---|
| Hot Sheet: starts with 2 persons, 1 vehicle, 1 location; Description pastes as one row (H, W, Hair, Eyes); Lat / Long pastes as one row | Not run |
| Hot Sheet: the Additional Pictures gallery adds, removes and pastes its images | Not run |
| Hot Sheet: Print / PDF hides the buttons and the empty add boxes, and keeps cards from splitting across pages | Not run |
Hot Sheet: the optional header badge shows when assets/badge.png exists, and nothing breaks when it doesn't | Not run |
| Case Intro: Event number sits directly below Case / report number, County follows it | Not run |
| Subject Details: Add address creates Address 2, 3 and so on; Remove renumbers; each pastes as its own row | Not run |
Privacy and deployment
| Check | Status |
|---|---|
| Browser developer tools, Network tab: the only external request is the Bootstrap stylesheet, and no request carries form data | Not run |
| Application tab: no cookies, local storage or session storage are written | Not run |
| Console shows no errors, including no integrity (SRI) failure on the Bootstrap stylesheet | Not run |
Custom domain resolves over HTTPS; /, /hot-sheet.html and /assets/pages.js all load | Not run |