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:
@@ -13,17 +13,17 @@ import { tmpdir } from 'node:os';
|
||||
// flutter build web -t tool/chat_composer_probe_entry.dart \
|
||||
// --dart-define=CHAT_COMPOSER_PROBE_STYLE=material -o build/composer_probe_material
|
||||
// flutter build web -t tool/chat_composer_probe_entry.dart \
|
||||
// --dart-define=CHAT_COMPOSER_PROBE_STYLE=cupertino -o build/composer_probe_cupertino
|
||||
// OPENCODE_ARTIFACT_DIR=<dir> PROBE_VARIANT=material \
|
||||
// --dart-define=CHAT_COMPOSER_PROBE_STYLE=material -o build/composer_probe_material
|
||||
// OPENCODE_ARTIFACT_DIR=<dir> \
|
||||
// node tool/chat_composer_probe.mjs build/composer_probe_material
|
||||
// OPENCODE_ARTIFACT_DIR=<dir> \
|
||||
// node tool/chat_composer_probe.mjs build/composer_probe_material
|
||||
// OPENCODE_ARTIFACT_DIR=<dir> PROBE_VARIANT=cupertino \
|
||||
// node tool/chat_composer_probe.mjs build/composer_probe_cupertino
|
||||
//
|
||||
// The fixture is served over loopback only. Flutter paints text on a canvas, so
|
||||
// assertions read the semantics tree (aria-label/innerText) and the focused
|
||||
// editing element; captures are PNGs for visual inspection.
|
||||
|
||||
const variant = process.env.PROBE_VARIANT ?? 'material';
|
||||
const variant = 'material';
|
||||
const artifactDir = process.env.OPENCODE_ARTIFACT_DIR;
|
||||
if (!artifactDir) throw new Error('Set OPENCODE_ARTIFACT_DIR for the captures');
|
||||
await mkdir(artifactDir, { recursive: true });
|
||||
@@ -241,7 +241,7 @@ try {
|
||||
checks.push({ check: 'Enter inserted a newline without sending', value: multiline.value });
|
||||
|
||||
const usersBefore = (await labels()).filter(label => label === 'User message').length;
|
||||
await pressEnter(variant === 'cupertino' ? 4 : 2);
|
||||
await pressEnter(variant === 'material' ? 4 : 2);
|
||||
await waitFor(async () => (await semanticText()).includes('Stop'), 'Stop after send');
|
||||
const usersAfter = (await labels()).filter(label => label === 'User message').length;
|
||||
if (usersAfter <= usersBefore) {
|
||||
@@ -259,7 +259,7 @@ try {
|
||||
await type('Queued follow-up');
|
||||
const queuedDraft = await editingValue();
|
||||
if (process.env.PROBE_DEBUG) console.log('queued draft', JSON.stringify(queuedDraft));
|
||||
await pressEnter(variant === 'cupertino' ? 4 : 2);
|
||||
await pressEnter(variant === 'material' ? 4 : 2);
|
||||
await delay(900);
|
||||
const queuedCapture = await capture('composer-queued');
|
||||
const queuedRead = await ocr(queuedCapture);
|
||||
@@ -276,7 +276,7 @@ try {
|
||||
|
||||
await focusField();
|
||||
await type('refuse me');
|
||||
await pressEnter(variant === 'cupertino' ? 4 : 2);
|
||||
await pressEnter(variant === 'material' ? 4 : 2);
|
||||
await waitFor(
|
||||
async () => (await semanticText()).includes('The fixture refused this prompt.'),
|
||||
'the refusal line',
|
||||
|
||||
Reference in New Issue
Block a user