| 1 | # UI checks |
| 2 | |
| 3 | Use a disposable local relay with the public fixture identity. This identity is for testing only. |
| 4 | |
| 5 | `` `sh |
| 6 | go build -o /tmp/tiny-ux ./cmd/tiny |
| 7 | /tmp/tiny-ux tenant create --data-dir /tmp/tinyrelay-ux --name main \ |
| 8 | --owner 5ac640e5df8f7945381c31f435288ba3f587fbd68efb27abaf941792f9c36369 |
| 9 | /tmp/tiny-ux serve --data-dir /tmp/tinyrelay-ux --default-tenant main \ |
| 10 | --listen 127.0.0.1:18447 --allow-private-relays |
| 11 | `` ` |
| 12 | |
| 13 | In another terminal, seed notes, articles, files and a Git repository, then check valid and malformed URLs: |
| 14 | |
| 15 | `` `sh |
| 16 | node scripts/qa/ux-fixture.mjs --data /tmp/tinyrelay-ux |
| 17 | node scripts/qa/ux-http-fuzz.mjs |
| 18 | go test ./tinyclient -run '^$' -fuzz FuzzInjectBasePreservesText -fuzztime=10s |
| 19 | `` ` |
| 20 | |
| 21 | The HTTP report and browser screenshots are saved under `output/playwright/ux/` . |
| 22 | |
| 23 | For browser checks, open the fixture relay with Playwright CLI. The edge checks use a separate guest session. They cover failed requests, competing navigation, sign-in errors, new tabs and 60 seeded navigation actions. |
| 24 | |
| 25 | `` `sh |
| 26 | npx --package @playwright/cli playwright-cli -s=tiny-ux open http://127.0.0.1:18447 |
| 27 | npx --package @playwright/cli playwright-cli -s=tiny-ux run-code \ |
| 28 | --filename scripts/qa/ux-browser-edges.js |
| 29 | `` ` |
| 30 | |
| 31 | The full flow checks require signing in as the fixture owner. Start the local test signer, open `/signin` in that browser session and connect using the printed Bunker URL: |
| 32 | |
| 33 | `` `sh |
| 34 | BUNKER_USER_SECRET=fc1d06a0fd5e622dcf448d0b3c2fccc891a5ecf74546a7675460d92441fecfdd \ |
| 35 | node scripts/qa/nip46-bunker.mjs |
| 36 | `` ` |
| 37 | |
| 38 | Then run the viewer, filter, history, signed form, mobile and no-JavaScript checks: |
| 39 | |
| 40 | `` `sh |
| 41 | npx --package @playwright/cli playwright-cli -s=tiny-ux run-code \ |
| 42 | --filename scripts/qa/ux-browser-flow.js |
| 43 | npx --package @playwright/cli playwright-cli -s=tiny-ux run-code \ |
| 44 | --filename scripts/qa/ux-browser-menu.js |
| 45 | `` ` |
| 46 | |
| 47 | The menu checks cover public pages, hosted viewers and management pages with JavaScript enabled and disabled. They verify that mobile navigation starts closed, opens with a click or keyboard input, and leaves content in place. Desktop navigation remains visible. |
| 48 | |
| 49 | Each browser check returns its results and failure count. A real phone signer is still needed to verify the operating system handoff and approval screens. |
| 50 | |
| 51 | ## Room attachments |
| 52 | |
| 53 | Build the relay, create a disposable tenant on port 18459, and seed the room fixture: |
| 54 | |
| 55 | `` `sh |
| 56 | go build -o /tmp/tiny-room-attachments ./cmd/tiny |
| 57 | /tmp/tiny-room-attachments tenant create --data-dir /tmp/tinyrelay-room-attachments --name main \ |
| 58 | --owner 5ac640e5df8f7945381c31f435288ba3f587fbd68efb27abaf941792f9c36369 |
| 59 | /tmp/tiny-room-attachments serve --data-dir /tmp/tinyrelay-room-attachments --default-tenant main \ |
| 60 | --listen 127.0.0.1:18459 --allow-private-relays |
| 61 | node scripts/qa/room-attachments-fixture.mjs --relay http://127.0.0.1:18459 \ |
| 62 | --data /tmp/tinyrelay-room-attachments |
| 63 | `` ` |
| 64 | |
| 65 | Sign in as the fixture owner using the local NIP-46 bunker, then run the browser check: |
| 66 | |
| 67 | `` `sh |
| 68 | BUNKER_USER_SECRET=fc1d06a0fd5e622dcf448d0b3c2fccc891a5ecf74546a7675460d92441fecfdd \ |
| 69 | node scripts/qa/nip46-bunker.mjs |
| 70 | npx --package @playwright/cli playwright-cli -s=tiny-room-attachments open \ |
| 71 | http://127.0.0.1:18459/signin --headed |
| 72 | npx --package @playwright/cli playwright-cli -s=tiny-room-attachments run-code \ |
| 73 | --filename scripts/qa/room-attachments-browser.js |
| 74 | `` ` |
| 75 | |
| 76 | Screenshots are saved under `output/playwright/room-attachments/` . |