fix(e2e+ui): e2e checks for the audit's failure classes, and the gaps they caught (#1767)
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:
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"
|
||||
>
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in new issue
Block a user