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
+5 -4
View File
@@ -154,10 +154,10 @@ try {
}
};
let viewport = { width: 320, height: 640 };
const navigate = async ({ mode, host = 'material', scale = 1, theme = 'dark', width = 320, height = 640, semantics: enableSemantics = false, state } = {}) => {
const navigate = async ({ mode, scale = 1, theme = 'dark', width = 320, height = 640, semantics: enableSemantics = false, state } = {}) => {
viewport = { width, height };
await send('Emulation.setEmulatedMedia', { features: [{ name: 'prefers-color-scheme', value: theme }] }, session);
const query = new URLSearchParams({ mode, host, scale: String(scale), theme });
const query = new URLSearchParams({ mode, scale: String(scale), theme });
if (state) query.set('state', state);
await send('Page.navigate', { url: `${origin}/?${query}` }, session);
await delay(2500);
@@ -286,9 +286,10 @@ try {
granted: 'Notifications are on. Failed and waiting runs will raise a browser notification.',
denied: 'Notifications are blocked for this site.',
};
for (const host of ['material', 'cupertino']) {
{
const host = 'material';
for (const [state, copy] of Object.entries(states)) {
await navigate({ mode: 'tile', host, scale: 2, semantics: true, state });
await navigate({ mode: 'tile', scale: 2, semantics: true, state });
const labels = (await semantics()).map((row) => row.label);
requireLabels(labels, [
'Pipelines can notify you when a run is waiting',