An open source design system that's fully customizable and agent ready
TypeScript
ci(visual): delete the report-only Probe theme reach scan (#7417)
Cindy Zhang8912f01c9cab
diff --git a/.github/scripts/release-check-workflow.test.mjs b/.github/scripts/release-check-workflow.test.mjsindex 8a1e63b190..5ba3470878 100644--- a/.github/scripts/release-check-workflow.test.mjs+++ b/.github/scripts/release-check-workflow.test.mjs@@ -649,13 +649,11 @@ describe('full release scope without PR metadata or maintenance writes', () => {expect(result.stdout).not.toContain('AUDIT MUST NOT RUN');});- it('keeps exhaustive a11y contracts, their artifacts, and Probe reach release-only', () => {+ it('keeps exhaustive a11y contracts and their artifacts release-only', () => {for (const [job, name] of [['a11y-contracts', 'Run accessibility spec-test contracts'],['a11y-contracts', 'Upload pressed-state pixel evidence'],['a11y-contracts', 'Upload component-audit browser evidence'],- ['pr-a11y', 'Check Probe theme reach'],- ['pr-a11y', 'Upload Probe reach report'],]) {expect(runs(step(job, name)), name).toBe(true);expect(diff --git a/.github/scripts/visual-gate/README.md b/.github/scripts/visual-gate/README.mdindex 33081b9891..50e65367e9 100644--- a/.github/scripts/visual-gate/README.md+++ b/.github/scripts/visual-gate/README.md@@ -33,7 +33,7 @@ PR accessibility is intentionally smaller: explicit changed-component axe scopestory-play guards. Empty/shared scope never falls back to all stories, andmissing or approximate analysis fails rather than granting an empty scope.The full axe roster, whole-repository accessibility spec-test contracts and their-pixel/evidence uploads, and Probe reach sweep run only during `release-check`.+pixel/evidence uploads run only during `release-check`.Release callers must bind the CI run/attempt and all three job outcomes to itsexact main SHA, and confirm that SHA remains an ancestor of current main before@@ -79,9 +79,6 @@ a baseline, or create another visual status.Deployment previews, `a11y-weekly.yml`, `rtl-weekly.yml`, and`vibe-screenshots.yml` remain separate because they do not run visual regression.-The baseline-free `gate.mjs reach` diagnostic lives with the existing `pr-a11y`-browser checks; it tests whether Probe overrides reach their targets, not whether-screenshots match a golden image.## Explicit baseline maintenancediff --git a/.github/scripts/visual-gate/gate.mjs b/.github/scripts/visual-gate/gate.mjsindex 9c23220d1f..55b963727f 100644--- a/.github/scripts/visual-gate/gate.mjs+++ b/.github/scripts/visual-gate/gate.mjs@@ -52,8 +52,6 @@ import {summarizeBaselineAccounting,withThemeMetadata,} from './lib/plan.mjs';-import {READ_TARGETS, emptyAccumulator, fold} from './lib/probe-reach.mjs';-import {AXES, PROBE_TOKENS, READ_AXES} from './lib/probe-axes.mjs';import {renderReport} from './lib/report.mjs';import {accept, incomparable, readBaseline} from './lib/baseline.mjs';import {loadConfig, loadThemeOverrides, loadThemingTargets} from './lib/sources.mjs';@@ -645,122 +643,6 @@ async function main() {case 'check':case 'release':return check();- case 'reach': {- // The assertion a pixel diff cannot make: did each target's override- // actually arrive? No baseline, no images — the probe theme's unique- // per-selector colour is the fingerprint, so this is an equality test.- const {chromium} = await import('playwright');- const {serveDirectory} = await import('./lib/capture.mjs');- const stories = storiesInPackages(- readStoryIndex(- storybookDir,- Object.keys(config.excludeStories),- REPO_ROOT,- ),- ['*'],- );- const subject = only.length- ? stories.filter(story => only.some(f => story.storyId ?? story.id.includes(f)))- : stories;- const server = await serveDirectory(storybookDir);- const origin = `http://127.0.0.1:${server.port}`;- const browser = await chromium.launch();- const page = await browser.newPage({viewport: config.viewport});- const acc = emptyAccumulator();- const axisHits = {- tokens: new Set(),- icon: new Set(),- indicator: new Set(),- fonts: new Set(),- syntax: new Set(),- };- let done = 0;- for (const story of subject) {- try {- await page.goto(- `${origin}/iframe.html?id=${encodeURIComponent(story.id)}&viewMode=story&globals=astryxTheme:${config.probeTheme};colorMode:light`,- {waitUntil: 'load', timeout: 30000},- );- await page.waitForSelector('#storybook-root > *', {timeout: 20000});- await page.evaluate(() => document.fonts.ready);- fold(acc, await page.evaluate(READ_TARGETS), story.id);- // The other five axes. A single story proves tokens and fonts; the- // registry swaps and syntax need a story that renders one, so these- // accumulate across the walk.- const axes = await page.evaluate(READ_AXES);- for (const [name, value] of Object.entries(axes.tokens)) {- if (value && value === PROBE_TOKENS[name]) axisHits.tokens.add(name);- }- for (const kind of Object.keys(axes.swaps)) axisHits[kind]?.add(kind);- if (/AstryxProbeFace/.test(axes.fontFamily)) axisHits.fonts.add('body');- for (const color of axes.syntax) {- if (/^rgb\(/.test(color)) axisHits.syntax.add(color);- }- } catch {- // A story that will not render contributes no readings; the visual- // tier reports it as a capture failure.- }- if (++done % 100 === 0) process.stderr.write(` read ${done}/${subject.length}\n`);- }- await browser.close();- await server.close();-- const declared = (await loadThemingTargets(REPO_ROOT)).map(t => t.key);- const unseen = [...new Set(declared)].filter(- key => !acc.verified.has(key) && !acc.failures.has(key) && !acc.shadowed.has(key),- );- // An axis with nothing rendering it is UNVERIFIABLE, not passing — the- // difference is the whole point, and reporting it as green is how a- // check ends up asserting nothing.- const axisReport = {- components: {- verified: acc.verified.size,- missed: acc.failures.size,- ...AXES.components,- },- tokens: {verified: axisHits.tokens.size, of: Object.keys(PROBE_TOKENS).length, ...AXES.tokens},- icons: {verified: axisHits.icon.size > 0, ...AXES.icons},- indicators: {verified: axisHits.indicator.size > 0, ...AXES.indicators},- fonts: {verified: axisHits.fonts.size > 0, ...AXES.fonts},- syntax: {verified: axisHits.syntax.size, ...AXES.syntax},- };-- const out = {- version: 1,- generatedAt: new Date().toISOString(),- axes: axisReport,- verified: [...acc.verified].sort(),- failures: Object.fromEntries([...acc.failures].sort()),- shadowed: Object.fromEntries([...acc.shadowed].sort()),- neverRendered: unseen.sort(),- };- fs.mkdirSync(outDir, {recursive: true});- fs.writeFileSync(path.join(outDir, 'reach.json'), `${JSON.stringify(out, null, 2)}\n`);-- process.stdout.write('theme axes:\n');- for (const [name, info] of Object.entries(axisReport)) {- const value =- typeof info.verified === 'boolean'- ? info.verified- ? 'reached'- : 'NOT REACHED'- : `${info.verified}${info.of ? `/${info.of}` : ''} reached`;- process.stdout.write(` ${name.padEnd(12)} ${value}\n`);- }- process.stdout.write(- `\ncomponent targets\n` +- `reached the pixels: ${out.verified.length}\n` +- `shares an element with another: ${Object.keys(out.shadowed).length}\n` +- `override did NOT arrive: ${Object.keys(out.failures).length}\n` +- `no story renders it: ${out.neverRendered.length}\n`,- );- for (const [key, info] of Object.entries(out.failures).slice(0, 30)) {- process.stdout.write(- ` ${key.padEnd(30)} got ${String(info.got).padEnd(22)} want ${info.expected} (${info.storyId})\n`,- );- }- return Object.keys(out.failures).length > 0 ? EXIT.changed : EXIT.clean;- }case 'flaky': {// A gate that cries wolf gets ignored, so the exclusion list is// evidence, not guesswork: capture the same build twice and name every@@ -866,7 +748,7 @@ async function main() {}default:process.stderr.write(- 'Usage: gate.mjs <flaky|plan|capture|check|release|reach|accept> [--storybook-dir dir] [--baseline dir] [--out dir] [--tiers a,b] [--sample n]\n',+ 'Usage: gate.mjs <flaky|plan|capture|check|release|accept> [--storybook-dir dir] [--baseline dir] [--out dir] [--tiers a,b] [--sample n]\n',);return EXIT.crashed;}diff --git a/.github/scripts/visual-gate/lib/probe-axes.mjs b/.github/scripts/visual-gate/lib/probe-axes.mjsindex d76ecd4479..c5664a610f 100644--- a/.github/scripts/visual-gate/lib/probe-axes.mjs+++ b/.github/scripts/visual-gate/lib/probe-axes.mjs@@ -4,8 +4,7 @@* @file The other five theme axes, and the shape a probe needs for each.** @input the theme contract (`defineTheme`) and the registries it accepts- * @output the non-`components` half of the probe theme, plus what each axis- * needs a story to render before it can be verified+ * @output the non-`components` half of the probe theme** `defineTheme` takes six things. The generated component overrides cover one* of them, and until this file the other five had no coverage at all: a theme@@ -96,69 +95,3 @@ export const PROBE_INDICATORS = {radio: 'singleSelection',checkbox: 'multiSelection',};--/**- * What each axis needs before it can be checked, and how it is proven.- *- * The gate reads this to report an axis as unverifiable-for-a-reason rather- * than as passing — an axis with no story to render it is not a green axis.- */-export const AXES = {- components: {- proof: 'computed colour equals the selector-specific probe colour',- needs: 'any story rendering the target',- },- tokens: {- proof: 'custom property on the themed element equals the probe value',- needs: 'any themed story',- },- icons: {- proof: `an element carrying ${PROBE_SWAP_ATTR}="icon" is in the DOM`,- needs: 'a story rendering a themeable icon',- },- indicators: {- proof: `an element carrying ${PROBE_SWAP_ATTR}="indicator" is in the DOM`,- needs: 'a story rendering a checkbox, radio, or selected option',- },- fonts: {- proof: 'computed font-family names the probe face',- needs: 'any themed story',- },- syntax: {- proof: 'a highlighted code token equals the probe syntax colour',- needs: 'a story rendering a CodeBlock',- },-};--/**- * Read the non-component axes off a themed page. Runs in the browser.- *- * Reads from the element the theme actually scopes to (`[data-astryx-theme]`),- * not `:root` — the runtime path sets custom properties on that subtree, so- * reading the document element would report every token as missing.- */-export const READ_AXES = `(() => {- const scope = document.querySelector('[data-astryx-theme]') ?? document.documentElement;- const style = getComputedStyle(scope);- const tokens = {};- for (const name of ${JSON.stringify(Object.keys(PROBE_TOKENS))}) {- tokens[name] = style.getPropertyValue(name).trim();- }- const swaps = {};- for (const el of document.querySelectorAll('[${PROBE_SWAP_ATTR}]')) {- swaps[el.getAttribute('${PROBE_SWAP_ATTR}')] = true;- }- return {- tokens,- swaps,- // The token, not the scope element's computed font-family: the themed- // wrapper sets no font of its own, so reading its computed value reports- // the browser default and calls a working theme broken. The token is what- // the theme sets and what every themed element inherits.- fontFamily: style.getPropertyValue('--font-family-body').trim(),- // Syntax colours only exist where a CodeBlock rendered.- syntax: [...document.querySelectorAll('.astryx-code-block [class*="token"], .astryx-code-block span')]- .slice(0, 60)- .map((el) => getComputedStyle(el).color),- };-})()`;diff --git a/.github/scripts/visual-gate/lib/probe-reach.mjs b/.github/scripts/visual-gate/lib/probe-reach.mjsdeleted file mode 100644index 3420511323..0000000000--- a/.github/scripts/visual-gate/lib/probe-reach.mjs+++ /dev/null@@ -1,140 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Does each theming target's override actually reach the pixels?- *- * @input a built Storybook, the probe theme- * @output per target: the override arrived, or it did not and what won instead- *- * This is the assertion the screenshot tier cannot make. A visual baseline- * proves a component looks the same as last week — including when the reason- * it looks the same is that a theme override stopped applying and the shot was- * captured broken and promoted as correct. Nothing in a pixel diff can tell- * those apart.- *- * The probe theme gives every selector a unique deterministic colour, so- * "did this override reach this element" is an equality test rather than a- * diff: compute the colour the selector should have produced, read the- * element's computed style, compare. No baseline, no images, no flake, and it- * names the failing target instead of a rectangle of moved pixels.- *- * An element is checked against EVERY selector that legitimately addresses it- * — `base`, each reflected prop, each reflected state — because a- * `variant:info` override beating `base` is the cascade working, not a miss.- */--import {paint} from './probe-theme.mjs';--/**- * `hsl(H S% L%)` → the `rgb(r, g, b)` string getComputedStyle returns.- * @param {string} hsl- * @returns {string}- */-export function hslToRgb(hsl) {- const [h, s, l] = hsl.match(/[\d.]+/g).map(Number);- const saturation = s / 100;- const lightness = l / 100;- const k = n => (n + h / 30) % 12;- const a = saturation * Math.min(lightness, 1 - lightness);- const f = n => lightness - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));- const to255 = n => Math.round(f(n) * 255);- return `rgb(${to255(0)}, ${to255(8)}, ${to255(4)})`;-}--/**- * Every colour a correctly-applied probe theme could legitimately produce on- * this element.- * @param {string} key - target key (class minus the `astryx-` prefix)- * @param {string[]} data - reflected `data-*` as `name` or `name:value`- * @returns {string[]}- */-export function expectedColors(key, data) {- const seeds = [key, ...data.map(entry => `${key}.${entry}`)];- // Every property the generator paints, for every selector that addresses- // this element — an element with no background can still prove the override- // arrived through its text or border colour.- return seeds.flatMap(seed => Object.values(paint(seed))).map(hslToRgb);-}--/**- * Read every themed element on the page, with the data a theme can address it- * by. Runs in the browser.- * @returns {string}- */-export const READ_TARGETS = `(() => {- const out = [];- for (const el of document.querySelectorAll('[class*="astryx-"]')) {- const data = [];- for (const a of el.attributes) {- if (!a.name.startsWith('data-')) continue;- const n = a.name.slice(5);- data.push(a.value === '' || a.value === 'true' ? n : n + ':' + a.value);- }- const cs = getComputedStyle(el);- // Several targets can sit on ONE element (a date input's toggle icon is- // also an icon). Whichever rule wins, only one colour can be there, so a- // reading carries every co-located target and the caller decides.- const keys = [...el.classList].filter(c => c.startsWith('astryx-')).map(c => c.slice(7));- if (keys.length === 0) continue;- out.push({keys, data, bg: cs.backgroundColor, color: cs.color, border: cs.borderTopColor});- }- return out;-})()`;--/**- * Fold a page's readings into the running verdict.- *- * A target is verified as soon as ONE element proves the override arrived;- * later elements of the same target that legitimately show something else- * (a state the probe does not colour, an inherited surface) must not- * un-verify it.- *- * @param {{verified: Set<string>, failures: Map<string, object>}} acc- * @param {Array<{key: string, data: string[], bg: string}>} readings- * @param {string} storyId- */-export function fold(acc, readings, storyId) {- for (const {keys, data, bg, color, border} of readings) {- // The probe paints background, text and border from independent hashes, so- // an element that cannot show a background (an inline glyph, a- // display:contents wrapper) can still prove the override arrived.- const painted = [bg, color, border];-- for (const key of keys) {- if (acc.verified.has(key)) continue;- const mine = expectedColors(key, data);- if (painted.some(value => mine.includes(value))) {- acc.verified.add(key);- acc.failures.delete(key);- acc.shadowed.delete(key);- continue;- }- // Another target on this same element won. That is a fact about the- // markup, not a broken override — the two targets are the same element,- // so only one colour can be there. Reported separately, because- // "these two targets are one element" is worth knowing and is NOT the- // same finding as "this override reaches nothing".- const sibling = keys.some(- other => other !== key && painted.some(v => expectedColors(other, data).includes(v)),- );- if (sibling) {- if (!acc.failures.has(key) && !acc.shadowed.has(key)) {- acc.shadowed.set(key, {storyId, sharesElementWith: keys.filter(k => k !== key)});- }- continue;- }- if (!acc.failures.has(key)) {- // First failing story wins: the report needs one stable place to- // point, and re-pointing it at whichever story was walked last makes- // the same failure read differently between runs.- acc.failures.set(key, {storyId, got: bg, expected: mine[0], data});- }- }- }- return acc;-}--/** @returns {{verified: Set<string>, failures: Map<string, object>, shadowed: Map<string, object>}} */-export function emptyAccumulator() {- return {verified: new Set(), failures: new Map(), shadowed: new Map()};-}diff --git a/.github/scripts/visual-gate/lib/probe-reach.test.mjs b/.github/scripts/visual-gate/lib/probe-reach.test.mjsdeleted file mode 100644index 4fea606d75..0000000000--- a/.github/scripts/visual-gate/lib/probe-reach.test.mjs+++ /dev/null@@ -1,124 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--import {describe, expect, it} from 'vitest';--import {emptyAccumulator, expectedColors, fold, hslToRgb} from './probe-reach.mjs';-import {paint, probeColor} from './probe-theme.mjs';--const rgbOf = seed => hslToRgb(probeColor(seed));-const textOf = seed => hslToRgb(paint(seed).color);--describe('hslToRgb', () => {- it('matches the rgb() form getComputedStyle returns', () => {- expect(hslToRgb('hsl(0 100% 50%)')).toBe('rgb(255, 0, 0)');- expect(hslToRgb('hsl(120 100% 25%)')).toBe('rgb(0, 128, 0)');- });-- it('round-trips a probe colour', () => {- expect(rgbOf('badge')).toMatch(/^rgb\(\d+, \d+, \d+\)$/);- });-});--describe('expectedColors', () => {- it('accepts the base colour when the element reflects no data', () => {- expect(expectedColors('badge', [])).toContain(rgbOf('badge'));- });-- it('covers every property the generator paints, not just the background', () => {- expect(expectedColors('badge', [])).toContain(textOf('badge'));- });-- it('also accepts a variant colour — a variant beating base is the cascade working', () => {- const colors = expectedColors('badge', ['variant:info']);- expect(colors).toContain(rgbOf('badge.variant:info'));- expect(colors).toContain(rgbOf('badge'));- });-});--describe('fold', () => {- it('accepts proof from text or border, so an element with no background still counts', () => {- const acc = fold(- emptyAccumulator(),- [{keys: ['icon'], data: [], bg: 'rgba(0, 0, 0, 0)', color: textOf('icon')}],- 's',- );- expect([...acc.verified]).toEqual(['icon']);- });-- it('calls a target shadowed — not failed — when another target on the SAME element won', () => {- const acc = fold(- emptyAccumulator(),- [{keys: ['date-input-toggle-icon', 'icon'], data: [], bg: rgbOf('icon')}],- 's',- );- expect([...acc.verified]).toEqual(['icon']);- expect(acc.failures.size).toBe(0);- expect(acc.shadowed.get('date-input-toggle-icon')).toMatchObject({- sharesElementWith: ['icon'],- });- });-- it('promotes a shadowed target to verified once it wins somewhere else', () => {- const acc = emptyAccumulator();- fold(acc, [{keys: ['a', 'b'], data: [], bg: rgbOf('b')}], 'one');- expect(acc.shadowed.has('a')).toBe(true);- fold(acc, [{keys: ['a'], data: [], bg: rgbOf('a')}], 'two');- expect(acc.shadowed.has('a')).toBe(false);- expect(acc.verified.has('a')).toBe(true);- });-- it('still fails a target when NOTHING probe-coloured won on its element', () => {- const acc = fold(- emptyAccumulator(),- [{keys: ['card', 'surface'], data: [], bg: 'rgb(255, 255, 255)'}],- 's',- );- expect(acc.failures.has('card')).toBe(true);- expect(acc.shadowed.size).toBe(0);- });-- it('verifies a target whose override arrived', () => {- const acc = fold(emptyAccumulator(), [{keys: ['badge'], data: [], bg: rgbOf('badge')}], 's');- expect([...acc.verified]).toEqual(['badge']);- expect(acc.failures.size).toBe(0);- });-- it('fails a target showing the component colour instead of the override', () => {- const acc = fold(emptyAccumulator(), [{keys: ['badge'], data: [], bg: 'rgb(0, 100, 224)'}], 's');- expect(acc.verified.size).toBe(0);- expect(acc.failures.get('badge')).toMatchObject({got: 'rgb(0, 100, 224)', storyId: 's'});- });-- it('credits the variant colour on a variant element', () => {- const acc = fold(- emptyAccumulator(),- [{keys: ['badge'], data: ['variant:info'], bg: rgbOf('badge.variant:info')}],- 's',- );- expect([...acc.verified]).toEqual(['badge']);- });-- it('one proof is enough — a later element cannot un-verify a target', () => {- const acc = emptyAccumulator();- fold(acc, [{keys: ['badge'], data: [], bg: rgbOf('badge')}], 'a');- fold(acc, [{keys: ['badge'], data: [], bg: 'rgb(1, 2, 3)'}], 'b');- expect([...acc.verified]).toEqual(['badge']);- expect(acc.failures.size).toBe(0);- });-- it('clears an earlier failure once the target is proven elsewhere', () => {- const acc = emptyAccumulator();- fold(acc, [{keys: ['badge'], data: [], bg: 'rgb(1, 2, 3)'}], 'a');- expect(acc.failures.has('badge')).toBe(true);- fold(acc, [{keys: ['badge'], data: [], bg: rgbOf('badge')}], 'b');- expect(acc.failures.has('badge')).toBe(false);- expect([...acc.verified]).toEqual(['badge']);- });-- it('keeps the first failing story, so the report can point somewhere real', () => {- const acc = emptyAccumulator();- fold(acc, [{keys: ['card'], data: [], bg: 'rgb(255, 255, 255)'}], 'first');- fold(acc, [{keys: ['card'], data: [], bg: 'rgb(255, 255, 255)'}], 'second');- expect(acc.failures.get('card').storyId).toBe('first');- });-});diff --git a/.github/scripts/visual-maintenance-workflow.test.mjs b/.github/scripts/visual-maintenance-workflow.test.mjsindex 09f1bacf85..9f874b287a 100644--- a/.github/scripts/visual-maintenance-workflow.test.mjs+++ b/.github/scripts/visual-maintenance-workflow.test.mjs@@ -284,17 +284,4 @@ describe('canonical capture and checked-in baseline separation', () => {expect(result.status, result.stderr).toBe(expected);},);-- it('retains non-regression Probe reach diagnostics in the existing accessibility owner', () => {- const a11y = workflow.jobs['pr-a11y'];- expect(step(a11y, 'Check Probe theme reach').run).toContain(- 'gate.mjs reach',- );- expect(step(a11y, 'Check Probe theme reach')['continue-on-error']).toBe(- true,- );- expect(step(a11y, 'Upload Probe reach report').with.path).toBe(- '.visual-reach/reach.json',- );- });});diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7506790ef7..7fb0887c1b 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1817,25 +1817,6 @@ jobs:retention-days: 30if-no-files-found: error- # Baseline-free target/axis diagnostics are not a visual-regression lane.- # Keep their existing report-only behavior with the other browser guards.- - name: Check Probe theme reach- if: github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check'- continue-on-error: true- run: |- node .github/scripts/visual-gate/gate.mjs reach \- --storybook-dir apps/storybook/dist \- --out .visual-reach-- - name: Upload Probe reach report- if: always() && github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check'- uses: actions/upload-artifact@v7- with:- name: visual-reach- path: .visual-reach/reach.json- retention-days: 30- if-no-files-found: warn-# Release-only accessibility contracts run beside pr-a11y instead of after# its full axe sweep, so the release check waits for the longer of the two# rather than their sum. release-check requires this job as it requiresdiff --git a/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.tsindex c1cecc673e..4a1ae507ae 100644--- a/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts+++ b/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts@@ -15,12 +15,11 @@* output—not an event wrapper, speculative internal structure, or a node* created only for layout plumbing."*- * This is not observable in the unit lane and not observable to the probe-reach- * gate either. jsdom resolves no cascade, so it cannot say which element paints.- * The gate's reach check asks whether a target's override lands on the element- * carrying the class, and it does — that element simply is not the one a reader- * sees. Only a real engine can be asked the question that matters: does styling- * the documented target change the pill?+ * This is not observable in the unit lane: jsdom resolves no cascade, so it+ * cannot say which element paints. An override can land on the element carrying+ * the class while that element is not the one a reader sees. Only a real engine+ * can be asked the question that matters: does styling the documented target+ * change the pill?** The pill is identified structurally, as the button's parent element, so every* measurement below is independent of where the class currently sits.diff --git a/scripts/check-visual-workflow-owner.test.mjs b/scripts/check-visual-workflow-owner.test.mjsindex 5782bef529..6f94c924f8 100644--- a/scripts/check-visual-workflow-owner.test.mjs+++ b/scripts/check-visual-workflow-owner.test.mjs@@ -169,7 +169,6 @@ describe('single visual workflow owner', () => {{run: 'node .github/scripts/gh-pages-publisher.mjs immutable-path --scope pr-visual/evidence',},- {run: 'node .github/scripts/visual-gate/gate.mjs reach'},{run: 'pnpm test:a11y-contract'},{run: 'pnpm rtl:audit'},{run: 'npx playwright install chromium'},