commit 2c20b7903668740071c3f20871ef1c0db090c431 parent 8e2919cb6dd203153f66fa198280745d3d32496a Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st> Date: Wed, 14 Oct 2026 18:25:57 -0400 umtool: the audit's fixes — labels, states, the spend line, the blocking facet From the screenshot audit against the canvas: - Sentence case on what was left: the Deliver tab's Cut N confirmed clips / Build share batch, Take snapshot, Fetch N unfetched clips, the clip bench's controls (Save window, Play selection, Reset, Cut to quote, Fetch to …), a note's Resolve / Won't fix / Reopen / Reply / Edit / Delete / Save note, Add note, Save / Saved, Listen, Measure the rest, Compare, Copy citation (was "cite"), Create list, Copy this song, Accept — spends N videos, Blind A/B, Match variant, the faces verdicts and Reset to auto / Suggest the border, the deck's verdict words. - A clip not fetched yet, one that ends mid-sentence and one the widener would move are open findings: the `state` tag, their notes ink; the on-screen "estimated" tag is a state. - No verdict colour on an action: a note's Resolve and Add note were the kept colour, its Delete turned red on hover; the projects page's blocking facet was red. - Settings · generation's Spend today read "2026-10-14UTC": one string now. Specs: clip-bench (Fetch to +23 s), article-notes (Reply), triage (the deck's verdicts, case-insensitive). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Diffstat:
26 files changed, 77 insertions(+), 81 deletions(-)
diff --git a/umtool/app/projects/page.tsx b/umtool/app/projects/page.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import { badgeVariants, type BadgeVariants } from "@/components/ui/badge"; +import { badgeVariants } from "@/components/ui/badge"; import { buttonVariants } from "@/components/ui/button"; import { EmptyState } from "@/components/ui/empty-state"; import { Input } from "@/components/ui/field"; @@ -140,7 +140,6 @@ export default async function BrowsePage({ href={qs({ open: "blocking" })} on={open === "blocking"} label={`blocking ${nOf((p) => (counts.get(p.id)?.blocking ?? 0) > 0)}`} - tone="blocking" /> <Chip href={qs({ open: "1" })} @@ -234,12 +233,10 @@ function Chip({ href, on, label, - tone, }: { href: string; on: boolean; label: string; - tone?: BadgeVariants["variant"]; }) { return ( <Link @@ -248,7 +245,7 @@ function Chip({ // and it is the actual accessibility statement -- the colour is only the // visible half of it. aria-current={on ? "true" : undefined} - className={badgeVariants({ variant: on ? "on" : (tone ?? "neutral") })} + className={badgeVariants({ variant: on ? "on" : "neutral" })} > {label} </Link> diff --git a/umtool/app/settings/generation/page.tsx b/umtool/app/settings/generation/page.tsx @@ -65,9 +65,8 @@ export default async function GenerationPage() { <Panel title="Spend today" aside={ - <span className="text-muted-2"> - {day} UTC · the editor's ledger - </span> + // One string: the date and "UTC" rendered as two text nodes lost the space between them. + <span className="text-muted-2">{`${day} UTC · the editor's ledger`}</span> } data-spend-today={spend.usd.toFixed(2)} > diff --git a/umtool/components/CutBench.tsx b/umtool/components/CutBench.tsx @@ -248,7 +248,7 @@ export default function CutBench({ : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > - {blind ? "blind — labels hidden" : "blind A/B"} + {blind ? "Blind — labels hidden" : "Blind A/B"} </button> {!pair && ( <span className="text-[11px] text-[var(--color-dim)]"> @@ -375,7 +375,7 @@ export default function CutBench({ durations={durations} videoRef={a} onMatch={() => copyTime(b.current, a.current)} - matchLabel="← match variant" + matchLabel="← Match variant" notes={notes} /> <Pane @@ -386,7 +386,7 @@ export default function CutBench({ durations={durations} videoRef={b} onMatch={() => copyTime(a.current, b.current)} - matchLabel="match shipped →" + matchLabel="Match shipped →" notes={notes} /> </div> diff --git a/umtool/components/FaceDeck.tsx b/umtool/components/FaceDeck.tsx @@ -738,7 +738,7 @@ export default function FaceDeck({ : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > - {v} <span className="micro">{key}</span> + {v.charAt(0).toUpperCase() + v.slice(1)} <span className="micro">{key}</span> </button> ))} @@ -748,7 +748,7 @@ export default function FaceDeck({ data-reset-crop className="ml-2 rounded border border-[var(--color-line)] px-2 py-0.5 font-mono text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]" > - reset to auto <span className="micro">r</span> + Reset to auto <span className="micro">r</span> </button> <button type="button" @@ -756,7 +756,7 @@ export default function FaceDeck({ data-suggest className="rounded border border-[var(--color-line)] px-2 py-0.5 font-mono text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]" > - suggest the border <span className="micro">b</span> + Suggest the border <span className="micro">b</span> </button> <button type="button" diff --git a/umtool/components/LoudnessTable.tsx b/umtool/components/LoudnessTable.tsx @@ -87,7 +87,7 @@ export default function LoudnessTable({ data-measure-all className={`ml-auto ${buttonVariants({ size: "sm" })}`} > - {busy ? `measuring ${busy}…` : "measure the rest"} + {busy ? `Measuring ${busy}…` : "Measure the rest"} </button> )} </div> @@ -145,7 +145,7 @@ export default function LoudnessTable({ data-measure={r.rel} className="rounded border border-[var(--color-line)] px-1.5 py-0.5 text-[11px] text-[var(--color-dim)] hover:text-[var(--color-text)] disabled:opacity-40" > - {busy === r.rel ? "measuring…" : "not measured — measure"} + {busy === r.rel ? "Measuring…" : "Not measured — measure"} </button> )} </td> diff --git a/umtool/components/MixBench.tsx b/umtool/components/MixBench.tsx @@ -604,7 +604,7 @@ export default function MixBench({ preset = null }: { preset?: MixPresetProp }) disabled={!body} className="rounded border border-[var(--color-line)] px-3 py-2 text-[13px] disabled:opacity-30" > - show the command + Show the command </button> <button type="button" @@ -612,7 +612,7 @@ export default function MixBench({ preset = null }: { preset?: MixPresetProp }) disabled={!body || job?.state === "running"} className="rounded border border-seam-2 px-3 py-2 text-[13px] text-text hover:border-muted hover:bg-panel-2 disabled:opacity-30" > - {job?.state === "running" ? "rendering…" : "render"} + {job?.state === "running" ? "Rendering…" : "Render"} </button> </div> diff --git a/umtool/components/MomentMarks.tsx b/umtool/components/MomentMarks.tsx @@ -153,7 +153,7 @@ export default function MomentMarks({ </button> <span className="flex-1 text-[11px] text-[var(--color-text)]">{m.note}</span> <CopyButton - label="cite" + label="Copy citation" title="this moment, resolved to the clip playing there" url={ `/api/browse/context?song=${encodeURIComponent(song)}` + diff --git a/umtool/components/PlanDiffPanel.tsx b/umtool/components/PlanDiffPanel.tsx @@ -82,7 +82,7 @@ export default function PlanDiffPanel({ data-plandiff className={buttonVariants({ size: "sm" })} > - {busy ? "aligning…" : "compare"} + {busy ? "Aligning…" : "Compare"} </button> {a === b && <span className="text-[11px] text-[var(--color-dim)]">pick two different plans</span>} </div> diff --git a/umtool/components/ProvenancePanel.tsx b/umtool/components/ProvenancePanel.tsx @@ -314,7 +314,7 @@ export default function ProvenancePanel({ the arrangement -- no need to find it in a player first. */} <CopyButton - label="cite" + label="Copy citation" title="this moment in the arrangement, with its source clip and archive link" url={`/api/browse/context?song=${encodeURIComponent(song)}&clip=${encodeURIComponent(r.clipId)}`} /> diff --git a/umtool/components/ShortlistBar.tsx b/umtool/components/ShortlistBar.tsx @@ -145,7 +145,7 @@ export default function ShortlistBar({ disabled={busy || !name.trim()} className="rounded border border-[var(--color-line)] px-1.5 py-0.5 font-mono text-[11px] text-[var(--color-dim)] hover:text-[var(--color-text)] disabled:opacity-40" > - create + Create list </button> </form> diff --git a/umtool/components/SpecSheet.tsx b/umtool/components/SpecSheet.tsx @@ -138,7 +138,7 @@ export default function SpecSheet({ data-save-spec className={`ml-auto ${buttonVariants({ size: "md" })}`} > - {dirty ? "save" : "saved"} + {dirty ? "Save" : "Saved"} </button> </div> diff --git a/umtool/components/ThumbBench.tsx b/umtool/components/ThumbBench.tsx @@ -177,7 +177,7 @@ export default function ThumbBench({ data-accept={c.name} className={buttonVariants({ size: "sm" })} > - {busy === c.name ? "accepting…" : `accept — spends ${c.corners.length} videos`} + {busy === c.name ? "Accepting…" : `Accept — spends ${c.corners.length} videos`} </button> ) )} diff --git a/umtool/components/VerdictRow.tsx b/umtool/components/VerdictRow.tsx @@ -110,7 +110,7 @@ export default function VerdictRow({ > <div className="flex items-center gap-2"> <kbd>{c.key}</kbd> - <span className="font-semibold">{c.label}</span> + <span className="font-semibold">{c.label.charAt(0).toUpperCase() + c.label.slice(1)}</span> </div> <div className="mt-0.5 text-[11px] text-[var(--color-dim)]">{c.hint}</div> </button> diff --git a/umtool/components/articles/NoteCards.tsx b/umtool/components/articles/NoteCards.tsx @@ -32,7 +32,7 @@ export function Composer({ busy, onSave, onCancel, - saveLabel = "save note", + saveLabel = "Save note", }: { label: string; initial?: string; @@ -80,7 +80,7 @@ export function Composer({ {saveLabel} </button> <button type="button" onClick={onCancel} className="text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]"> - cancel + Cancel </button> <span className="micro ml-auto">ctrl+enter</span> </div> @@ -152,7 +152,7 @@ export function NoteCard({ label="edit note" initial={note.text} busy={busy} - saveLabel="save" + saveLabel="Save" onSave={async (text) => { await write({ op: "edit", id: note.id, text }); onCancelEdit?.(); @@ -178,7 +178,7 @@ export function NoteCard({ <Composer label="reply" busy={busy} - saveLabel="reply" + saveLabel="Reply" onSave={async (text) => { await write({ op: "reply", id: note.id, text }); setReplying(false); @@ -190,23 +190,23 @@ export function NoteCard({ {note.status === "open" ? ( <> <Act onClick={() => write({ op: "status", id: note.id, status: "resolved" })} disabled={busy}> - resolve + Resolve </Act> <Act onClick={() => write({ op: "status", id: note.id, status: "wontfix" })} disabled={busy}> - won’t fix + Won’t fix </Act> </> ) : ( <Act onClick={() => write({ op: "status", id: note.id, status: "open" })} disabled={busy}> - reopen + Reopen </Act> )} <Act onClick={() => setReplying(true)} disabled={busy}> - reply + Reply </Act> {mine && onEdit && ( <Act onClick={onEdit} disabled={busy}> - edit + Edit </Act> )} <Act @@ -215,7 +215,7 @@ export function NoteCard({ }} disabled={busy} > - delete + Delete </Act> </div> )} diff --git a/umtool/components/notes/NoteThread.tsx b/umtool/components/notes/NoteThread.tsx @@ -37,24 +37,24 @@ export function NoteThread({ <span className="flex gap-1.5 text-[10px]"> {open ? ( <> - <button type="button" data-note-action="resolve" disabled={busy} onClick={() => void write({ op: "status", id: note.id, status: "resolved" })} className="text-[var(--color-good)] hover:underline disabled:opacity-40"> - resolve + <button type="button" data-note-action="resolve" disabled={busy} onClick={() => void write({ op: "status", id: note.id, status: "resolved" })} className="text-text hover:underline disabled:opacity-40"> + Resolve </button> <button type="button" data-note-action="wontfix" disabled={busy} onClick={() => void write({ op: "status", id: note.id, status: "wontfix" })} className="text-[var(--color-dim)] hover:underline disabled:opacity-40"> - won’t fix + Won’t fix </button> </> ) : ( <button type="button" data-note-action="reopen" disabled={busy} onClick={() => void write({ op: "status", id: note.id, status: "open" })} className="ink-link disabled:opacity-40"> - reopen + Reopen </button> )} <button type="button" data-note-action="reply" disabled={busy} onClick={() => setReply((r) => (r === null ? "" : null))} className="ink-link disabled:opacity-40"> - reply + Reply </button> {note.author === "operator" && ( - <button type="button" data-note-action="delete" disabled={busy} onClick={() => void write({ op: "delete", id: note.id })} className="text-[var(--color-dim)] hover:text-[var(--color-bad)] disabled:opacity-40"> - delete + <button type="button" data-note-action="delete" disabled={busy} onClick={() => void write({ op: "delete", id: note.id })} className="text-[var(--color-dim)] hover:text-text disabled:opacity-40"> + Delete </button> )} </span> @@ -127,9 +127,9 @@ export function NoteComposer({ type="button" disabled={busy || !text.trim()} onClick={add} - className="rounded border border-[var(--color-good)] px-2 py-0.5 text-[11px] text-[var(--color-good)] disabled:opacity-40" + className="rounded border border-seam-2 px-2 py-0.5 text-[11px] text-text hover:border-muted disabled:opacity-40" > - add + Add note </button> </div> ); diff --git a/umtool/components/projects/ClipBench.tsx b/umtool/components/projects/ClipBench.tsx @@ -2125,7 +2125,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { className="ml-auto text-reader-signal hover:underline" onClick={() => setPeekPad((n) => n + PEEK_STEP)} > - peek further (±{peekPad + PEEK_STEP} s) + Peek further (±{peekPad + PEEK_STEP} s) </button> </> )} @@ -2229,7 +2229,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { disabled={!unsaved || !!busy} onClick={saveWindow} > - save window + Save window </button> <button type="button" @@ -2237,7 +2237,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { className={buttonVariants({ size: "sm" })} onClick={() => void play(sel.from, sel.to)} > - play selection + Play selection </button> <button type="button" @@ -2247,7 +2247,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { title={!unsaved && extendedFrom ? `undo the extension: back to ${hms(extendedFrom.start)} – ${hms(extendedFrom.end)}` : undefined} onClick={() => resetRef.current()} > - reset + Reset </button> {data.mixHref && ( // Built SERVER-SIDE, because a mix link carries an absolute path @@ -2293,7 +2293,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { })} onClick={() => choosePlayback((pb) => ({ ...pb, auto: !pb.auto }))} > - auto-audition {playback.auto ? "on" : "off"} + Auto-audition {playback.auto ? "on" : "off"} </button> {/* What is playing, and what it measured. The attributes are the bench's record of its last playback, on the audio clock -- @@ -2362,7 +2362,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { } onClick={() => void cutToQuote()} > - cut to quote + Cut to quote </button> {clip.cutStart != null && ( <button @@ -2372,7 +2372,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { disabled={!!busy} onClick={() => void save({ cutStart: "", cutEnd: "", lockCut: false })} > - clear cut + Clear cut </button> )} </span> @@ -2402,7 +2402,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { title="put the mute mark at the playhead" onClick={muteAtPlayhead} > - mute from here + Mute from here </button> <button type="button" @@ -2412,7 +2412,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { title="the next click on the waveform places the mute mark (Esc cancels)" onClick={() => setMutePick((v) => !v)} > - {mutePick ? "click the waveform…" : "pick on waveform"} + {mutePick ? "Click the waveform…" : "Pick on waveform"} </button> {mute != null && ( <button @@ -2421,7 +2421,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { className={buttonVariants({ size: "sm" })} onClick={clearMute} > - clear mute + Clear mute </button> )} </span> @@ -2523,7 +2523,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { disabled={!!busy} onClick={() => void fetchMore({ padBefore: nextBefore, padAfter: keepAfter })} > - ← fetch to −{nextBefore} s + ← Fetch to −{nextBefore} s </button> )} {afterMaxed ? ( @@ -2540,7 +2540,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { disabled={!!busy} onClick={() => void fetchMore({ padBefore: keepBefore, padAfter: nextAfter })} > - fetch to +{nextAfter} s → + Fetch to +{nextAfter} s → </button> )} {/* THE WHOLE RECORDING, when neither edge is the answer. Last, @@ -2552,7 +2552,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { disabled={!!busy} onClick={() => void fetchWholeSource()} > - fetch whole source via editor + Fetch whole source via editor </button> </div> )} @@ -2731,7 +2731,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { }) } > - save and lock + Save and lock </button> </p> )} @@ -2787,7 +2787,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { else el.pause(); }} > - {segPaused ? "play" : "pause"} + {segPaused ? "Play" : "Pause"} </button> <input type="range" @@ -2842,7 +2842,7 @@ export default function ClipBench({ data }: { data: ClipBenchData }) { disabled={!!busy} onClick={() => void rerender()} > - re-render this clip + Re-render this clip </button> <p className="text-[11px] leading-snug text-[var(--color-dim)]"> One clip, no crossfade, no chapters — it overwrites this clip’s segment and diff --git a/umtool/components/projects/DeliverActions.tsx b/umtool/components/projects/DeliverActions.tsx @@ -169,7 +169,7 @@ export default function DeliverActions({ className={buttonVariants({ size: "sm" })} onClick={() => void post("cut")} > - cut {needCut} confirmed clip{needCut === 1 ? "" : "s"} from cache + Cut {needCut} confirmed clip{needCut === 1 ? "" : "s"} from cache </button> <span className="flex items-center gap-1"> @@ -188,7 +188,7 @@ export default function DeliverActions({ className={buttonVariants({ variant: "ghost", size: "sm" })} onClick={() => void post("share", { name })} > - build share batch ({candidates}) + Build share batch ({candidates}) </button> </span> diff --git a/umtool/components/projects/FetchUnfetchedButton.tsx b/umtool/components/projects/FetchUnfetchedButton.tsx @@ -158,8 +158,8 @@ export default function FetchUnfetchedButton({ onClick={() => void run()} > {running - ? `fetching ${done + 1} of ${total}…` - : `fetch ${total} unfetched clip${total === 1 ? "" : "s"} via the editor`} + ? `Fetching ${done + 1} of ${total}…` + : `Fetch ${total} unfetched clip${total === 1 ? "" : "s"} via the editor`} </button> {running && ( <button diff --git a/umtool/components/projects/OnscreenSection.tsx b/umtool/components/projects/OnscreenSection.tsx @@ -1347,7 +1347,7 @@ export default function OnscreenSection({ disabled={!!busy || dirtyIds.length === 0} onClick={() => void saveRows()} > - {dirtyIds.length ? `save ${dirtyIds.length} change${dirtyIds.length === 1 ? "" : "s"}` : "saved"} + {dirtyIds.length ? `Save ${dirtyIds.length} change${dirtyIds.length === 1 ? "" : "s"}` : "Saved"} </button> {dirtyIds.length > 0 && ( <button @@ -1526,7 +1526,7 @@ export default function OnscreenSection({ disabled={!!busy || dirtyPostIds.length === 0} onClick={() => void savePosts()} > - {dirtyPostIds.length ? `save ${dirtyPostIds.length} post${dirtyPostIds.length === 1 ? "" : "s"}` : "saved"} + {dirtyPostIds.length ? `Save ${dirtyPostIds.length} post${dirtyPostIds.length === 1 ? "" : "s"}` : "Saved"} </button> {dirtyPostIds.length > 0 && ( <button @@ -1879,7 +1879,7 @@ export default function OnscreenSection({ {current?.id ?? "—"} </span> {schedule.estimated ? ( - <span className={badgeVariants({ variant: "open", size: "sm" })} data-testid="onscreen-estimated"> + <span className={badgeVariants({ variant: "state", size: "sm" })} data-testid="onscreen-estimated"> estimated timing </span> ) : ( diff --git a/umtool/components/projects/SnapshotButton.tsx b/umtool/components/projects/SnapshotButton.tsx @@ -46,7 +46,7 @@ export default function SnapshotButton({ project }: { project: string }) { } }} > - snapshot + Take snapshot </button> {error && <span className="text-[11px] text-[var(--color-bad)]">{error}</span>} </span> diff --git a/umtool/components/projects/TakesBench.tsx b/umtool/components/projects/TakesBench.tsx @@ -388,7 +388,7 @@ function TakeCard({ className={`ml-auto rounded border px-2 py-0.5 text-[11px] ${tone("sel", listening)}`} onClick={onListen} > - {listening ? "listening" : "listen"} + {listening ? "Listening" : "Listen"} </button> </div> {t.summary && <p className="text-[12px] text-[var(--color-text)]">{t.summary}</p>} diff --git a/umtool/components/projects/report/CutTab.tsx b/umtool/components/projects/report/CutTab.tsx @@ -203,7 +203,7 @@ export default async function CutTab({ project, detail, search, tabHref }: Repor {e.fetched ? ( <Pill>cached</Pill> ) : ( - <Pill tone="open"> + <Pill tone={TONE.open}> not fetched yet </Pill> )} @@ -211,10 +211,10 @@ export default async function CutTab({ project, detail, search, tabHref }: Repor {!e.hasCues && ( <Pill tone={TONE.blocking}>no cues</Pill> )} - {midSentence && <Pill tone="open">ends mid-sentence</Pill>} + {midSentence && <Pill tone={TONE.open}>ends mid-sentence</Pill>} {e.noPunctuation && <Pill>source unpunctuated</Pill>} {e.proposed && ( - <Pill tone="open"> + <Pill tone={TONE.open}> widener would move it </Pill> )} @@ -251,12 +251,12 @@ export default async function CutTab({ project, detail, search, tabHref }: Repor </p> )} {midSentence && e.endCueText && ( - <p className="num mt-1 text-[11px] text-[var(--color-dirty)]"> + <p className="num mt-1 text-[11px] text-text-2"> cut lands inside: “…{String(e.endCueText).trim().slice(-64)}” </p> )} {e.proposed && ( - <p className="num mt-1 text-[11px] text-[var(--color-dirty)]"> + <p className="num mt-1 text-[11px] text-text-2"> resolve-windows would make it {hms(e.proposed.start)}–{hms(e.proposed.end)} — set <code className="font-mono">lock</code> if this window is deliberate </p> diff --git a/umtool/components/projects/song/OverviewTab.tsx b/umtool/components/projects/song/OverviewTab.tsx @@ -97,7 +97,7 @@ export default async function OverviewTab({ <h2 className="micro">This song</h2> <span className="ml-auto" data-song-copy=""> <CopyButton - label="copy this song" + label="Copy this song" title="this song as markdown — spec, cuts, verdicts, notes and resolved marks" url={`/api/browse/context?song=${encodeURIComponent(song.id)}`} /> diff --git a/umtool/e2e/article-notes.spec.ts b/umtool/e2e/article-notes.spec.ts @@ -148,7 +148,7 @@ test("section, whole-article and citation notes; resolve, reopen, reply, filters await expect(reopened).toHaveAttribute("data-status", "open"); await reopened.getByRole("button", { name: "reply" }).click(); await page.getByLabel("note text").fill("A reply."); - await reopened.getByRole("button", { name: "reply", exact: true }).click(); + await reopened.getByRole("button", { name: "Reply", exact: true }).click(); await expect(reopened.locator("[data-reply='operator']")).toContainText("A reply."); }); diff --git a/umtool/e2e/clip-bench.spec.ts b/umtool/e2e/clip-bench.spec.ts @@ -1165,7 +1165,7 @@ test("each side names its own pad, and a side that cannot grow says so", async ( const after = page.locator("[data-fetch-after]"); await expect(after).toBeVisible(); await expect(after).toHaveAttribute("data-fetch-after", "23"); - await expect(after).toContainText("fetch to +23 s"); + await expect(after).toContainText("Fetch to +23 s"); // And there is nothing before 0.00 to fetch: c01 starts at 3 s into a // recording whose cached file already begins at the beginning. diff --git a/umtool/e2e/triage.spec.ts b/umtool/e2e/triage.spec.ts @@ -129,25 +129,25 @@ test("the window is unbounded: widening fetches more audio", async ({ page }) => }); test("verdict buttons are two levels, and Esc backs out", async ({ page }) => { - const verdicts = page.getByRole("button", { name: /not an um/ }); + const verdicts = page.getByRole("button", { name: /not an um/i }); await expect(verdicts).toBeVisible(); await verdicts.click(); // Level 2 REPLACES level 1 -- this is what stops the card growing. - await expect(page.getByRole("button", { name: /not an um/ })).toHaveCount(0); + await expect(page.getByRole("button", { name: /not an um/i })).toHaveCount(0); await expect(page.getByRole("button", { name: "← back" })).toBeVisible(); await expect(page.getByRole("button", { name: /a real word, not a filler/ })).toBeVisible(); await page.keyboard.press("Escape"); - await expect(page.getByRole("button", { name: /not an um/ })).toBeVisible(); + await expect(page.getByRole("button", { name: /not an um/i })).toBeVisible(); await expect(page.getByRole("button", { name: "← back" })).toHaveCount(0); }); test("a tall card scrolls instead of hiding under the footer", async ({ page }) => { await page.setViewportSize({ width: 900, height: 380 }); // Open level 2, which is the tallest the card gets. - await page.getByRole("button", { name: /not an um/ }).click(); + await page.getByRole("button", { name: /not an um/i }).click(); const main = page.locator("main.deck-main"); await expect(main).toBeVisible();