aqua-listen smoke: the copy fallback is tested with the clipboard API removed; README export wording
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
84fc228406
commit
889b018c64
2 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# aqua-listen
|
||||
|
||||
A listening-test kit: a folder of sound clips and a manifest become **one HTML file** you can send to a listener. They open it, listen, say keep / fix / drop for each sound, and send back two small files.
|
||||
A listening-test kit: a folder of sound clips and a manifest become **one HTML file** you can send to a listener. They open it, listen, say keep / fix / drop for each sound, and send back your answers.
|
||||
|
||||
**Status:** the page was driven in headless Chromium, desktop and a mobile-emulated context (touch, 412 px viewport, Android Chrome user agent; `MOBILE=1 node smoke.mjs`): consent gate, autosave across reload, the export panel with its copy button and read-only textarea, zero network requests. It has not run on a real Android device and `node test.mjs` covers validation, ordering and the export shape. Nobody has listened with it yet, and the headless browser played nothing audibly; real playback on a phone or other browser is untried.
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ A listening-test kit: a folder of sound clips and a manifest become **one HTML f
|
|||
5. Some sounds come as a pair, **A** and **B**. Rate both, then say which you prefer, or that there is no difference.
|
||||
6. The sounds are in a random order and their names are hidden on purpose. Please don't hunt for them.
|
||||
7. Your answers save themselves in your browser as you go. You can close the tab and come back to the same file later.
|
||||
8. When done, press **Export my answers**. Your answers appear in a text box. Press **Copy answers (JSON)** and paste them into a message to whoever gave you the page (or press **Share**, or **Select all** and use your phone's Copy). **Download verdict.json** and **Download verdict.md** are separate buttons, one file per tap, for browsers that allow downloads. Copying or sharing is the only way anything leaves your computer.
|
||||
8. When done, press **Export my answers**. Your answers appear in a text box. Press **Copy answers (JSON)** and paste them into a message to whoever gave you the page (or press **Share**, or **Select all** and use your phone's Copy). **Download verdict.json** and **Download verdict.md** are separate buttons, one file per tap, for browsers that allow downloads. Nothing leaves your computer except what you copy, share or download.
|
||||
|
||||
Privacy: the page has no network access at all (the browser is told to refuse it), no account, no tracking. "Erase my answers" at the bottom wipes what the page saved.
|
||||
|
||||
|
|
|
|||
|
|
@ -37,9 +37,10 @@ check(v.listener === "Tester" && v.device === "headphones" && v.clips[0].verdict
|
|||
check(v.consent === true && v.clips.length === total, "consent recorded, every clip present");
|
||||
await page.click("#copy-json");
|
||||
check((await page.evaluate(() => navigator.clipboard.readText())) === text, "Copy button puts the full JSON on the clipboard");
|
||||
await page.evaluate(() => { navigator.clipboard.writeText = () => Promise.reject(new Error("denied")); });
|
||||
// http-Android shape: no async clipboard API at all, so only the execCommand path can copy
|
||||
await page.evaluate(() => { Object.defineProperty(navigator, "clipboard", { value: undefined, configurable: true }); window.__copied = null; document.execCommand = (c) => { window.__copied = document.activeElement.value; return c === "copy"; }; });
|
||||
await page.click("#copy-json");
|
||||
check(/Copied|blocked/.test(await page.textContent("#export-msg")), "copy falls back to execCommand without throwing");
|
||||
check((await page.textContent("#export-msg")).startsWith("Copied") && (await page.evaluate(() => window.__copied)) === text, "without the clipboard API, the execCommand fallback copies the full JSON");
|
||||
await page.reload();
|
||||
await page.click("#export");
|
||||
check((await page.inputValue("#export-text")).includes('"verdict": "fix"'), "reload loses nothing: export after reload still has the answers");
|
||||
|
|
|
|||
Loading…
Reference in a new issue