Repository navigation
Description
P3 · WCAG 2.1 SC 1.3.1 (Info and Relationships); SC 2.1.1 for information reachable only on hover · Reproduced locally at e3943c5f5c1e69c39309bb8f5b9cf5e63ce41672.
A board card shows three small indicators:
- who a review waits on: an eye and "1";
- that the task is blocked: an icon alone;
- its comment count.
Each carries its meaning only in an aria-label on a plain <span>, plus a tooltip that opens on pointer hover.
- ARIA prohibits naming such a generic element, and axe flags it.
- The spans take no keyboard focus, so their tooltips are out of a keyboard user's reach.
- The card button's own name and description say nothing about this state.
Reproduction
- Create a task that is blocked by another task, has a comment, has Reviewer set to an editor, and sits in In review.
- On the board, run axe-core and read Chrome's accessibility tree.
- Tab from the card button and note where focus goes.
Expected: what a sighted pointer user reads off the card is programmatically available, and not only in a tooltip. The repo's own guidance says so:
- "A tooltip alone does not name a control" (accessibility.md:21).
- "Keep essential instructions visible outside the tooltip as well" (accessibility.md:52).
- "A generic Tooltip only supplies a description" (icons.md:40).
The assignee avatar already fixed this pattern: "A bare names nothing (axe aria-prohibited-attr); the chip is a picture of the assignee, so it is an image" (assignee-avatar.tsx:78–80).
The card could carry its state in the card button's accessible description, such as "Waiting on Ava Editor. Blocked. 1 comment.", or as visually hidden text. Counts should use ICU plurals.
Actual:
- axe-core 4.13 (WCAG 2.0/2.1 A and AA, plus best practice) finds one violation on the board:
aria-prohibited-attr(serious), on the Blocked span, which has no text at all. - Chrome's own accessibility tree exposes the three spans as
genericnodes named "Blocked", "Waiting on Ava Editor" and "1 Comments". Whether a screen reader announces those names is up to the screen reader; none was used here. - The card button is named "Check the launch brief". Its description is the drag instruction ("Enter opens the task. Space picks it up; …").
- Tab from the card button reaches Priority, then Assign, then leaves the card; no indicator takes focus. The reviewer's name ("Waiting on Ava Editor") is therefore readable only on pointer hover. fix(platform): show review-waiting count on task cards #3085 replaced the visible reviewer name with the count "1", so the tooltip is now the only place it appears.
- The comment label reads "1 Comments":
${count} ${t('detail.comments')}concatenates a number with the plural noun. DE and FR would read "1 Kommentare" and "1 Commentaires" (from the catalogs; only EN was rendered).
User impact
A keyboard user cannot learn from the board who a review waits on, or that a task is blocked, without opening each task. A screen-reader user gets these facts only through names that ARIA does not allow on these elements, and gets nothing that the Blocked icon says.
Cause
task-indicators.tsx builds every indicator the same way, as a <Tooltip> around a <span aria-label>. That includes:
The file's other indicators follow the same pattern.
Suggested acceptance test
On a board card that is blocked, waits on a review and has comments:
- axe reports no
aria-prohibited-attr; - the card button's accessible name or description includes the reviewer, the blocked state and the comment count;
- a Tab walk through the card either reaches each indicator or doesn't need to;
- EN reads "1 comment" and "2 comments", with the same singular/plural split in DE and FR.
Evidence: frozen output (proof-f5-card-indicators.cjs, one fresh organization)
fixture: blocker 200 | dependency 200 {"ok":true} | comment 200 | reviewer A 200 | in_review 200
indicator spans (aria-label, no role) on the board: ["Blocked","Waiting on Ava Editor","1 Comments"]
axe 4.13.0 violations: ["aria-prohibited-attr(serious) x1"]
aria-prohibited-attr nodes: ["<span class=\"inline-flex items-center text-amber-600 dark:text-amber-400\" aria-label=\"Blocked\" data-state=\"closed\">"]
Chrome AX nodes named like the indicators: [{"role":"generic","name":"Blocked","ignored":false},{"role":"generic","name":"Waiting on Ava Editor","ignored":false},{"role":"generic","name":"1 Comments","ignored":false}]
card button AX: {"role":"button","name":"Check the launch brief","description":"Enter opens the task. Space picks it up; then the arrow keys move it, Space drops it and Escape cancels."}
CONTROL the task dialog states it as text: "Reviewer AE Ava Editor" "Blocked by To do RB-2 Collect the figures"
indicator spans with tabindex: 0
Tab stops after the card button: ["button \"Priority\"","button \"Assign\"","BODY","a \"Skip to main content\""]
--- console/http log --- (none)
Control in the same run: the task dialog states the same facts as text ("Reviewer · Ava Editor", "Blocked by · RB-2 Collect the figures"). That holds while the stored reviewer is the person the review waits on.
Mocked boundary: none. Real SPA, backend and PostgreSQL. No hardware screen reader was used.
Deduplication
Searched all 1,072 issues, in every state, for aria-prohibited-attr, for indicators, chips or badges together with screen readers or ARIA, and for hover-only tooltips. None covers task card indicators.
- Improvement: Missing ICU plural on count strings — renders "1 messages" / "1 teams" / "Send 1 Messages" #2053 and Bug: shared DataTable footer renders "Showing all 1 projects" / "Showing all 1 agents" — {entity} never singularizes #2646 (both closed) fixed the same number-plus-plural pattern elsewhere ("1 messages", "Showing all 1 projects").
- Bug: Primary side-nav rail links have no accessible name (icon-only; label only in a hover tooltip) — WCAG 2.4.4 / 4.1.2 #1975 (closed) was the rail's icon-only links.
- Improve task drag announcements to name tasks instead of UUIDs #3561 concerns task drag announcements.
- Bug: filtering the task board hides the Blocked indicator when its blocker is filtered out #3597 is the Blocked indicator hidden by a board filter.
Found by the TALE-70 local audit. No production system, real provider, mailbox or external delivery was used.
Local stack (loopback only)
- Source: a detached worktree of
e3943c5f5c1e69c39309bb8f5b9cf5e63ce41672(origin/main on 2026-09-28) withbun install --frozen-lockfile. The code named in this issue is unchanged on maine71775a8b(9 commits later). The message catalogs changed on main, buttasks.detail.commentsstill reads Comments / Kommentare / Commentaires. - Databases: PostgreSQL 16.14 (embedded-postgres binaries) with pgvector 0.8.6 on
127.0.0.1;tale_app, andtale_knowledgewithvector. No pg_search (not involved). - Backend, from
services/platform:node --experimental-transform-types --import ./backend/node-loader.mjs backend/main.tswithROLE=all PORT=3005 SITE_URL=http://localhost:3000 NODE_ENV=development, an emptyTALE_CONFIG_DIR,TALE_CONFIG_BUILTIN_DIR=configs/platform/custom,TALE_ALLOW_OPEN_SIGN_UP=true,TALE_DEV_SEED_USER=1, locally generatedBETTER_AUTH_SECRET/ENCRYPTION_SECRET_HEX/INSTANCE_SECRET, and no object store. Egress is blocked:NODE_USE_ENV_PROXY=1 HTTP_PROXY=HTTPS_PROXY=http://127.0.0.1:9 NO_PROXY=127.0.0.1,localhost,::1. - SPA:
bun --bun vite build, thenTALE_BACKEND_URL=http://127.0.0.1:3005 bunx --bun vite preview --port 3000(the production-build E2E serving path; the boot-shell prerender step was skipped). - Browser: Chromium 141.0.7390.37 headless, driven by the worktree's
playwright-core1.58.2 withserviceWorkers: 'block',en-US, 1280×900. - Fixtures: each proof signs up its own accounts and organization through
POST /api/auth/sign-up/emailandPOST /api/auth/organization/create. Credentials carry fake secrets that nothing tests; no provider, mailbox or other external service is reachable. - Replay:
T70_ROOT=<dir> node <proof>.cjs, where<dir>/taleis the worktree and<dir>/evidence/receives the log; adjust the Chromium path inlib.cjs.
probes/proof-f5-card-indicators.cjs
// PROOF F5: the board card's status indicators for assistive tech. A card that waits on a review, has a comment
// and is blocked by another task; read (1) axe-core 4.x on the board, (2) Chrome's own accessibility tree
// (CDP Accessibility.getFullAXTree) for each indicator span, (3) whether Tab from the card ever reaches an indicator.
// Control: the task dialog states the same facts as text (Reviewer: Ava Editor; Blocked by: Collect the figures).
// Mocked boundary: none (real SPA, backend, Postgres).
const L = require('./lib.cjs'); const T = require('./tasklib.cjs');
const out = [];
const say = (...a) => { const s = a.map((x) => (typeof x === 'string' ? x : JSON.stringify(x))).join(' '); out.push(s); console.log(s); };
(async () => {
const browser = await L.launch();
const log = [];
try {
const s = await T.setupReviewOrg(browser, 't5ind');
const blocker = await L.api(s.o.ctx, 'POST', `/api/app/tasks?orgId=${s.o.orgId}`, { projectId: s.projectId, title: 'Collect the figures', status: 'todo' });
const dep = await L.api(s.o.ctx, 'POST', `/api/app/tasks/dependencies?orgId=${s.o.orgId}`, { blockerTaskId: blocker.body.taskId, blockedTaskId: s.taskId });
const com = await L.api(s.o.ctx, 'POST', `/api/app/tasks/${s.taskId}/comments?orgId=${s.o.orgId}`, { body: 'Numbers are due Friday.' });
const rev = await L.api(s.o.ctx, 'POST', `/api/app/tasks/${s.taskId}?orgId=${s.o.orgId}`, { reviewerUserId: s.a.userId });
const mv = await L.api(s.o.ctx, 'POST', `/api/app/tasks/${s.taskId}/status?orgId=${s.o.orgId}`, { status: 'in_review' });
say('fixture: blocker', blocker.status, '| dependency', dep.status, JSON.stringify(dep.body).slice(0, 80), '| comment', com.status, '| reviewer A', rev.status, '| in_review', mv.status);
const page = await s.o.ctx.newPage();
L.watch(page, log);
await L.goto(page, T.boardUrl(s), 2500);
const labels = await page.locator('main span[aria-label]:not([role])').evaluateAll((els) => els.map((e) => e.getAttribute('aria-label')));
say('indicator spans (aria-label, no role) on the board:', labels);
// (1) axe
const axeSrc = L.fs.readFileSync(L.path.join(L.ROOT, 'tale/node_modules/axe-core/axe.min.js'), 'utf8');
await page.addScriptTag({ content: axeSrc });
const res = await page.evaluate(async () => {
// eslint-disable-next-line no-undef
const r = await axe.run(document.querySelector('main'), { runOnly: { type: 'tag', values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'best-practice'] } });
return { version: axe.version, violations: r.violations.map((v) => ({ id: v.id, impact: v.impact, n: v.nodes.length, targets: v.nodes.slice(0, 6).map((n) => n.html.slice(0, 140)) })) };
});
say('axe', res.version, 'violations:', res.violations.map((v) => `${v.id}(${v.impact}) x${v.n}`));
for (const v of res.violations.filter((x) => x.id === 'aria-prohibited-attr')) say(' aria-prohibited-attr nodes:', v.targets);
// (2) Chrome's accessibility tree
const cdp = await page.context().newCDPSession(page);
await cdp.send('Accessibility.enable');
const { nodes } = await cdp.send('Accessibility.getFullAXTree');
const want = new Set(labels);
const seen = nodes.filter((n) => n.name && want.has(n.name.value)).map((n) => ({ role: n.role?.value, name: n.name?.value, ignored: n.ignored }));
say('Chrome AX nodes named like the indicators:', seen);
const cardBtn = nodes.find((n) => n.name?.value === s.title && n.role?.value === 'button');
say('card button AX:', cardBtn && { role: cardBtn.role.value, name: cardBtn.name.value, description: cardBtn.description?.value ?? null });
await page.getByRole('button', { name: s.title, exact: true }).click();
const details = (await page.getByRole('dialog').getByRole('complementary').innerText()).replace(/\s+/g, ' ');
say('CONTROL the task dialog states it as text:', JSON.stringify(details.match(/Reviewer .*?(?= Start date)/)?.[0]), JSON.stringify(details.match(/Blocked by .*?(?= Blocks)/)?.[0]));
await page.keyboard.press('Escape');
await L.sleep(500);
// (3) keyboard: do indicators take focus?
say('indicator spans with tabindex:', await page.locator('main span[aria-label][tabindex]').count());
await page.getByRole('button', { name: s.title, exact: true }).focus();
const stops = [];
for (let i = 0; i < 4; i++) { await page.keyboard.press('Tab'); await L.sleep(120); stops.push(await L.focusedDesc(page)); }
say('Tab stops after the card button:', stops);
await L.shot(page, 'f5-board-card-indicators');
} finally {
say('--- console/http log ---', log.length ? '' : '(none)');
for (const l of log) say(l);
L.fs.writeFileSync(L.path.join(L.ROOT, 'evidence/proof-f5-card-indicators.log'), out.join('\n') + '\n');
await browser.close();
}
})().catch((e) => { console.error(e); process.exit(1); });probes/tasklib.cjs
// Task-review helpers shared by the task probes: an owner and two editors of one fresh org, each in its own
// browser context (its own session cookies), with an org-wide project holding one task in To do.
const L = require('./lib.cjs');
async function setupReviewOrg(browser, label, opts = {}) {
const o = await L.freshOrg(browser, label);
const a = await L.addMember(browser, o, opts.aRole ?? 'editor', 'Ava Editor');
const b = await L.addMember(browser, o, opts.bRole ?? 'editor', 'Ben Editor');
const p = await L.api(o.ctx, 'POST', `/api/app/projects?orgId=${o.orgId}`, { name: opts.projectName ?? 'Review board', ...(opts.teamIds ? { teamIds: opts.teamIds } : {}) });
if (p.status !== 200) throw new Error(`project: ${p.status} ${JSON.stringify(p.body)}`);
const t = await L.api(o.ctx, 'POST', `/api/app/tasks?orgId=${o.orgId}`, { projectId: p.body.projectId, title: opts.title ?? 'Check the launch brief', status: 'todo' });
if (t.status !== 200) throw new Error(`task: ${t.status} ${JSON.stringify(t.body)}`);
return { o, a, b, projectId: p.body.projectId, taskId: t.body.taskId, title: opts.title ?? 'Check the launch brief' };
}
const boardUrl = (s) => `/dashboard/${s.o.orgId}/projects/${s.projectId}/tasks/board`;
/** The bell button's accessible name carries the unread count ("Notifications, 2 unread notifications"). */
async function bell(page) {
const label = await page.locator('button[aria-label^="Notifications"]').first().getAttribute('aria-label').catch(() => null);
const m = label && label.match(/(\d+) unread/);
return m ? Number(m[1]) : 0;
}
/** A user's task notifications in the org, newest first, as `kind:read|UNREAD`. */
async function notes(user, orgId) {
const r = await L.api(user.ctx, 'GET', `/api/app/collab/notifications?orgId=${orgId}`);
const list = r.body.rows ?? r.body.items;
if (!Array.isArray(list)) return [`(unexpected ${r.status}) ${JSON.stringify(r.body).slice(0, 200)}`];
return list.map((n) => `${n.type}:${n.read ? 'read' : 'UNREAD'}`);
}
/** The review chip(s) on the board ("Waiting on …"), or 'none'. Each proof board holds one task. */
async function chip(page) {
const c = page.locator('[aria-label^="Waiting on"], [aria-label="Needs review"]');
const labels = [];
for (let i = 0; i < (await c.count()); i++) labels.push(await c.nth(i).getAttribute('aria-label'));
return labels.length ? labels.join(' / ') : 'none';
}
async function openTask(page, s) {
await L.goto(page, `${boardUrl(s)}?task=${s.taskId}`, 1500);
await page.getByRole('dialog').waitFor();
}
/** In the open task dialog: pick a reviewer by visible name, or 'clear'. */
async function pickReviewer(page, who) {
const dlg = page.getByRole('dialog').first();
await dlg.getByRole('button', { name: 'Reviewer', exact: true }).click();
const list = page.getByRole('listbox', { name: 'Reviewer' });
await list.waitFor({ timeout: 5000 });
if (who === 'clear') {
await page.getByRole('button', { name: /Clear reviewer/ }).or(page.getByRole('option', { name: /Clear reviewer/ })).first().click();
} else {
await list.getByRole('option', { name: new RegExp(`^${who}`) }).first().click();
}
await L.sleep(1200);
return reviewerField(page);
}
/** The text the task dialog shows beside its Reviewer button (the designee's name, or No reviewer). */
async function reviewerField(page) {
return page.evaluate(() => {
const btn = document.querySelector('[role="dialog"] button[aria-label="Reviewer"]');
return btn ? (btn.parentElement.innerText || '').trim() : '(no Reviewer button)';
});
}
async function pickStatus(page, label) {
const dlg = page.getByRole('dialog').first();
await dlg.getByRole('button', { name: /^Status/ }).click();
await page.getByRole('listbox', { name: 'Status' }).getByRole('option', { name: new RegExp(`^${label}`) }).first().click();
await L.sleep(1200);
}
module.exports = { reviewerField, setupReviewOrg, boardUrl, bell, notes, chip, openTask, pickReviewer, pickStatus };probes/lib.cjs
// TALE-70 local audit probe helpers. Local stack only: SPA http://localhost:3000 (vite preview of the
// production build, proxying /api, /events, /dav to the backend on 127.0.0.1:3005). Every probe mints its
// own synthetic organization and accounts through the local sign-up door; nothing else is touched.
const path = require('node:path');
const fs = require('node:fs');
const ROOT = process.env.T70_ROOT || path.join(process.env.HOME, '.cache/t70');
const { chromium } = require(path.join(ROOT, 'tale/node_modules/playwright-core'));
const BASE = 'http://localhost:3000';
const ORIGIN = { origin: BASE };
const PW = 'TaleAudit!Passw0rd';
const SHOTS = path.join(ROOT, 'evidence/shots');
async function launch() {
return chromium.launch({
executablePath: '/opt/ms-playwright/chromium-1194/chrome-linux/chrome',
headless: true,
args: ['--disable-dev-shm-usage'],
});
}
async function newContext(browser, opts = {}) {
return browser.newContext({
baseURL: BASE,
serviceWorkers: 'block',
viewport: opts.viewport ?? { width: 1280, height: 900 },
locale: opts.locale ?? 'en-US',
colorScheme: opts.colorScheme ?? 'light',
reducedMotion: 'reduce',
});
}
async function api(ctx, method, url, data) {
const r = await ctx.request.fetch(url, { method, data, headers: ORIGIN });
const text = await r.text();
let body = text;
try { body = JSON.parse(text); } catch { /* keep text */ }
return { status: r.status(), body };
}
function stamp(label) { return `${label}-${Date.now().toString(36)}`; }
/** A fresh owner with a fresh organization (sign-up + organization/create + set-active). */
async function freshOrg(browser, label, opts = {}) {
const s = stamp(label);
const email = `t70-${s}@tale.test`;
const ctx = await newContext(browser, opts);
const su = await api(ctx, 'POST', '/api/auth/sign-up/email', { email, password: PW, name: `Owner ${label}` });
if (su.status !== 200) throw new Error(`sign-up ${email}: ${su.status} ${JSON.stringify(su.body)}`);
const org = await api(ctx, 'POST', '/api/auth/organization/create', { name: `T70 ${s}`, slug: `t70-${s}` });
if (org.status !== 200) throw new Error(`org create: ${org.status} ${JSON.stringify(org.body)}`);
await api(ctx, 'POST', '/api/auth/organization/set-active', { organizationId: org.body.id });
return { ctx, orgId: org.body.id, email, userId: su.body.user.id, stamp: s, name: `Owner ${label}` };
}
/** A second account added to the owner's organization with `role`, in its own browser context. */
async function addMember(browser, owner, role, name, opts = {}) {
const email = `t70-${owner.stamp}-${name.toLowerCase().replace(/[^a-z0-9]+/g, '-')}@tale.test`;
const ctx = await newContext(browser, opts);
const su = await api(ctx, 'POST', '/api/auth/sign-up/email', { email, password: PW, name });
if (su.status !== 200) throw new Error(`sign-up ${email}: ${su.status} ${JSON.stringify(su.body)}`);
const add = await api(owner.ctx, 'POST', `/api/app/members?orgId=${owner.orgId}`, { userId: su.body.user.id, role });
if (add.status !== 200) throw new Error(`add member ${role}: ${add.status} ${JSON.stringify(add.body)}`);
await api(ctx, 'POST', '/api/auth/organization/set-active', { organizationId: owner.orgId });
return { ctx, email, name, userId: su.body.user.id, memberId: add.body.memberId };
}
function watch(page, sink, tag = '') {
page.on('console', (m) => { if (['error', 'warning'].includes(m.type()) && !BENIGN.some((b) => b.test(m.text()))) sink.push(`${tag}[console.${m.type()}] ${m.text().slice(0, 300)}`); });
page.on('pageerror', (e) => sink.push(`${tag}[pageerror] ${String(e).slice(0, 300)}`));
page.on('response', (r) => { if (r.status() >= 400 && r.url().includes('/api/')) sink.push(`${tag}[http ${r.status()}] ${r.request().method()} ${r.url().replace(BASE, '')}`); });
}
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
/** One-line description of document.activeElement. */
const focusedDesc = (page) => page.evaluate(() => {
const e = document.activeElement;
if (!e || e === document.body) return 'BODY';
const name = (e.getAttribute('aria-label') || e.innerText || e.getAttribute('placeholder') || e.value || '').trim().split('\n')[0].slice(0, 60);
const role = e.getAttribute('role');
return `${e.tagName.toLowerCase()}${role ? `[role=${role}]` : ''} "${name}"`;
});
async function shot(page, name, opts = {}) {
fs.mkdirSync(SHOTS, { recursive: true });
const p = path.join(SHOTS, `${name}.png`);
await page.screenshot({ path: p, fullPage: opts.fullPage ?? false });
return p;
}
/** Horizontal overflow of the document and of every element wider than the viewport. */
const overflow = (page) => page.evaluate(() => {
const vw = document.documentElement.clientWidth;
const doc = document.documentElement.scrollWidth;
const wide = [];
for (const el of document.querySelectorAll('body *')) {
const r = el.getBoundingClientRect();
if (r.width > 0 && (r.right > vw + 1) && getComputedStyle(el).position !== 'fixed') {
// skip descendants of a horizontally scrollable ancestor (a table frame that scrolls on purpose)
let p = el.parentElement, clipped = false;
while (p && p !== document.body) {
const cs = getComputedStyle(p);
if (/(auto|scroll|hidden|clip)/.test(cs.overflowX)) { clipped = true; break; }
p = p.parentElement;
}
if (!clipped) wide.push(`${el.tagName.toLowerCase()}.${String(el.className).slice(0, 60)} right=${Math.round(r.right)}`);
}
}
return { viewport: vw, scrollWidth: doc, docOverflows: doc > vw + 1, wide: wide.slice(0, 8) };
});
/** Visible toasts (sonner region). */
const toasts = async (page) => (await page.locator('[role="region"] li').allInnerTexts()).map((s) => s.replace(/\s*\n+\s*/g, ' ').trim()).filter(Boolean);
/** Every toast shown since the page loaded (a MutationObserver installed before any script runs). */
const TOAST_RECORDER = () => {
window.__toasts = [];
const seen = new WeakSet();
const scan = () => {
for (const li of document.querySelectorAll('[role="region"] li')) {
if (seen.has(li)) continue;
const text = (li.innerText || '').replace(/\s*\n+\s*/g, ' ').trim();
if (text) { seen.add(li); window.__toasts.push(text); }
}
};
new MutationObserver(scan).observe(document, { subtree: true, childList: true, characterData: true });
};
async function recordToasts(ctx) { await ctx.addInitScript(TOAST_RECORDER); }
const allToasts = (page) => page.evaluate(() => window.__toasts || []);
// The /events SSE stream keeps the network busy, so never wait for networkidle.
async function goto(page, url, settleMs = 1200) {
await page.goto(url, { waitUntil: 'domcontentloaded' });
await page.locator('main').first().waitFor({ timeout: 15000 }).catch(() => {});
await sleep(settleMs);
}
// Harness artefacts (serviceWorkers: 'block', font preload hints, the route prefetcher's miss note).
const BENIGN = [/Service Worker registration blocked by Playwright/, /Service worker registration failed TypeError: Cannot read properties of undefined \(reading 'waiting'\)/, /was preloaded using link preload but not used/, /\[prefetch\] no 0\.5 row/];
module.exports = { recordToasts, allToasts, launch, newContext, api, freshOrg, addMember, watch, sleep, focusedDesc, shot, overflow, toasts, goto, BASE, ORIGIN, PW, ROOT, SHOTS, fs, path };
/** With a menu open, move keyboard focus with ArrowDown until the focused item matches `re`. */
async function focusMenuItem(page, re) {
await page.getByRole('menu').waitFor();
await sleep(150);
for (let i = 0; i < 12; i++) {
const cur = await focusedDesc(page);
if (/menuitem/.test(cur) && re.test(cur)) return cur;
await page.keyboard.press('ArrowDown');
await sleep(120);
}
throw new Error(`menu item ${re} never took focus`);
}
/** Inside an open dialog, Tab until the focused element matches `re`. */
async function tabTo(page, re, max = 12) {
for (let i = 0; i < max; i++) {
const cur = await focusedDesc(page);
if (re.test(cur)) return cur;
await page.keyboard.press('Tab');
await sleep(80);
}
throw new Error(`Tab never reached ${re}; at ${await focusedDesc(page)}`);
}
Object.assign(module.exports, { focusMenuItem, tabTo });
Activity
yannickmonney commentedon Oct 3, 2026
Scope note: two more card indicators share this cause (TALE-358 local-qa, run
dd5617f2-d498-4388-8c13-d636315118b7,maina7efe1c51).task-indicators.tsx:155-170) uses the same pattern, anaria-labelon a role-less<span>inside a hover tooltip. axe-core 4.13.0 on a project board with two working cards reportedaria-prohibited-attr(serious) on exactly those two spans. The spans take no focus, so the tooltip is hover-only.:189-197) has the same markup.prefers-reduced-motion, which is bug(platform): the board's "Agent is working…" pulse keeps animating under reduced motion #4128.