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
+7 -7
View File
@@ -14,7 +14,7 @@ import { tmpdir } from 'node:os';
// OPENCODE_ARTIFACT_DIR=<dir> node tool/template_create_probe.mjs
//
// Optional PROBE_WIDTH/PROBE_HEIGHT (viewport), PROBE_SCALE (text scale),
// PROBE_HOST (material|cupertino) and PROBE_CAPTURE_PREFIX. The bundle's
// and PROBE_CAPTURE_PREFIX. The bundle's
// fixture gateway is in-process, so this never contacts a real Pipelines
// server and never submits to one. Requires Google Chrome.
@@ -25,7 +25,7 @@ await mkdir(artifactDir, { recursive: true });
const width = Number(process.env.PROBE_WIDTH ?? 390);
const height = Number(process.env.PROBE_HEIGHT ?? 844);
const textScale = process.env.PROBE_SCALE ?? '1';
const host = process.env.PROBE_HOST ?? 'material';
const host = 'material';
const capturePrefix = process.env.PROBE_CAPTURE_PREFIX ?? 't1-create';
const MIME = {
@@ -181,7 +181,7 @@ try {
// The prompt is open as soon as its native alert-dialog surface exists. The
// Create action's button role/aria-disabled is host- and scale-dependent on
// the web semantics layer, so the disabled state is asserted module-side for
// Material and by widget tests for Cupertino.
// Material and by widget tests for Material.
const promptOpen = () =>
evaluate("Boolean(document.querySelector('[role=alertdialog]'))");
@@ -229,7 +229,7 @@ try {
const checks = [];
const captures = [];
await send('Page.navigate', { url: `${origin}/?scale=${textScale}&host=${host}` }, session);
await send('Page.navigate', { url: `${origin}/?scale=${textScale}` }, session);
await waitFor(
() => evaluate("Boolean(document.querySelector('flt-semantics-placeholder'))"),
'semantics placeholder',
@@ -243,9 +243,9 @@ try {
await assertBody('Create from Release workflow');
await assertBody('New pipeline name (required)');
await assertBody("Creates a new draft pipeline on the server from this template's source; it is not run.");
// CupertinoDialogAction does not expose aria-disabled on the web semantics
// MaterialDialogAction does not expose aria-disabled on the web semantics
// layer; its disabled state is covered by the widget tests.
if (host !== 'cupertino' && (await createDisabled()) !== true) {
if (host !== 'material' && (await createDisabled()) !== true) {
throw new Error('Create was not disabled with a blank name');
}
const blank = await field();
@@ -259,7 +259,7 @@ try {
checks.push({ check: 'blank name keeps Create disabled', field: blank });
await typeName('Probe release');
if (host !== 'cupertino' && (await createDisabled()) !== false) {
if (host !== 'material' && (await createDisabled()) !== false) {
throw new Error('Create stayed disabled after a non-blank name');
}
await clickLabel('Create');