Remove alternate hosts from tooling probes

Keep the probe suite on the Material composition so browser fixtures and capture drivers no longer render or select Cupertino hosts. Record the final residual legacy arguments and implementation checks for the delivery gate.
This commit is contained in:
2026-11-11 21:38:30 +00:00
parent 7cb95471cb
commit b60ad6d98f
68 changed files with 405 additions and 747 deletions
+19 -19
View File
@@ -526,7 +526,7 @@ try {
await capture('d1-changes-desktop-diff', 1280, 800);
await clickExact('Close diff');
// Presentation revision: the light theme and a narrow Cupertino surface, at
// Presentation revision: the light theme and a narrow Material surface, at
// 2x so glyph advance, line tints and the popup inset are inspectable.
await navigate(`${origin}/?theme=light`);
await capture('d1-changes-phone-light-list', 390, 844);
@@ -548,34 +548,34 @@ try {
await capture('d1-changes-desktop-light-diff', 1280, 800);
await clickExact('Close diff');
await navigate(`${origin}/?platform=cupertino&theme=light`);
await capture('d1-changes-cupertino-light-list', 390, 844);
// The Cupertino pager uses native buttons; paging keeps the visit heading.
await navigate(`${origin}/?theme=light`);
await capture('d1-changes-material-light-list', 390, 844);
// The Material pager uses native buttons; paging keeps the visit heading.
await clickExact('Next visit');
const cupertinoSecond = await bodyText();
const materialSecond = await bodyText();
evidence.checks.push({
check: 'Cupertino pages to the second visit',
page: visitPage(cupertinoSecond),
stage: visitStage(cupertinoSecond, 'reviewer'),
check: 'Material pages to the second visit',
page: visitPage(materialSecond),
stage: visitStage(materialSecond, 'reviewer'),
});
if (visitPage(cupertinoSecond) !== '2 of 5 recorded visits') {
throw new Error(`Cupertino pager did not advance: ${JSON.stringify(cupertinoSecond)}`);
if (visitPage(materialSecond) !== '2 of 5 recorded visits') {
throw new Error(`Material pager did not advance: ${JSON.stringify(materialSecond)}`);
}
await capture('d1-changes-cupertino-light-page2', 390, 844);
await capture('d1-changes-material-light-page2', 390, 844);
await clickExact('Previous visit');
await clickPrefix('Open diff for lib/features/changes/domain/unified_patch.dart');
await capture('d1-changes-cupertino-light-diff', 390, 844);
await capture('d1-changes-cupertino-light-diff-2x', 390, 844, 2);
await capture('d1-changes-material-light-diff', 390, 844);
await capture('d1-changes-material-light-diff-2x', 390, 844, 2);
await navigate(`${origin}/?platform=cupertino`);
const cupertinoLabels = await labels();
if (!cupertinoLabels.some((label) => label.includes('Changes probe'))) {
throw new Error('Cupertino fixture did not load');
await navigate(`${origin}/`);
const materialLabels = await labels();
if (!materialLabels.some((label) => label.includes('Changes probe'))) {
throw new Error('Material fixture did not load');
}
await clickPrefix('Open diff for lib/features/changes/domain/unified_patch.dart');
await capture('d1-changes-cupertino-diff', 1280, 800);
await capture('d1-changes-material-diff', 1280, 800);
evidence.checks.push({ check: 'Cupertino viewer opened', value: true });
evidence.checks.push({ check: 'Material viewer opened', value: true });
evidence.checks.push({ check: 'visit capture written', value: visitFile });
console.log(JSON.stringify(evidence, null, 2));
} finally {