fix(e2e+ui): e2e checks for the audit's failure classes, and the gaps they caught (#1767)
deploy / gate (push) Successful in 4m48s
Quality / check (push) Successful in 6m11s
deploy / archied-image (push) Successful in 3m31s
deploy / agent-image (push) Successful in 12s
deploy / dist-zip (push) Skipped

loading-errors now forces each list API (/api/tasks, /api/captures,
/api/event-types, /api/tokens, /api/access/policies) to fail and asserts
the page shows its error surface, never its empty-state copy.
accessibility gains two static-route sweeps: every input/textarea/select/
button must have an accessible name, and every keyboard focus stop's
indicator (ring var, outline, shadow or focus border) must clear 3:1
against the background behind it. phone-overflow sweeps every static
route at 390x844 for horizontal scroll. The sweeps caught real gaps,
fixed here: the DurationInput amount input had no accessible name and
its unit select no focus indicator, and TabsContent and CodeBlockContent
were focusable with outline-none and no ring. The stale 'Sections' list
selector now matches the nav landmark.
This commit is contained in:
sam committed 2026-11-07 17:08:10 +11:00
1 parent e9937ded6b
commit 21b3591da1
8 files changed
+178 -24

No files matched your search

@@ -58,7 +58,7 @@ function getLines() {
tabindex="0"
:style="{ counterReset: `line ${startLine - 1}` }"
:class="cn(
'px-3 py-3 leading-relaxed group-has-data-[slot=code-block-header]/code-block:pt-2 group-has-data-[slot=code-block-footer]/code-block:pb-2 group-data-[size=sm]/code-block:px-2.5 group-data-[size=sm]/code-block:py-2.5 group-data-[size=sm]/code-block:group-has-data-[slot=code-block-header]/code-block:pt-1.5 min-h-0 min-w-0 scroll-fade-x scrollbar-thin overflow-auto text-start font-mono outline-none data-wrap:scroll-fade-y data-wrap:wrap-break-word data-wrap:whitespace-pre-wrap',
'px-3 py-3 leading-relaxed group-has-data-[slot=code-block-header]/code-block:pt-2 group-has-data-[slot=code-block-footer]/code-block:pb-2 group-data-[size=sm]/code-block:px-2.5 group-data-[size=sm]/code-block:py-2.5 group-data-[size=sm]/code-block:group-has-data-[slot=code-block-header]/code-block:pt-1.5 min-h-0 min-w-0 scroll-fade-x scrollbar-thin overflow-auto text-start font-mono outline-none rounded-md focus-visible:ring-3 focus-visible:ring-ring data-wrap:scroll-fade-y data-wrap:wrap-break-word data-wrap:whitespace-pre-wrap',
props.class,
)"
>
@@ -53,6 +53,7 @@ function emitChange() {
:id="id"
:model-value="amount"
type="text"
aria-label="Duration"
:aria-invalid="invalid || ariaInvalid === true || ariaInvalid === 'true' ? true : undefined"
@update:model-value="(value: string | number) => { amount = value; emitChange(); }"
inputmode="decimal"
@@ -63,7 +64,7 @@ function emitChange() {
<select
v-model="unit"
aria-label="Unit"
class="bg-transparent font-mono text-caption text-fg-muted outline-none"
class="rounded-sm bg-transparent font-mono text-caption text-fg-muted outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring"
:disabled="disabled"
@change="emitChange"
>
+1 -1
View File
@@ -15,7 +15,7 @@ const delegatedProps = reactiveOmit(props, "class");
<template>
<TabsContent
data-slot="tabs-content"
:class="cn('text-label flex-1 outline-none', props.class)"
:class="cn('text-label flex-1 rounded-md outline-none focus-visible:ring-3 focus-visible:ring-ring', props.class)"
v-bind="delegatedProps"
>
<slot />