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:
@@ -187,8 +187,8 @@ try {
|
||||
"[...document.querySelectorAll('flt-semantics')].map(x => x.getAttribute('aria-label') || (x.innerText || '').trim()).filter(Boolean)",
|
||||
);
|
||||
// Everything the semantics tree announces: labels, leaf text, and the value
|
||||
// of read-only text controls (the Cupertino Summary sections render their
|
||||
// JSON in a read-only CupertinoTextField, which is an <input>/<textarea>).
|
||||
// of read-only text controls (the Material Summary sections render their
|
||||
// JSON in a read-only MaterialTextField, which is an <input>/<textarea>).
|
||||
const text = () =>
|
||||
evaluate(`(() => {
|
||||
const chunks = [];
|
||||
@@ -286,8 +286,8 @@ try {
|
||||
};
|
||||
|
||||
// The Summary's Input/Output tiles: Material's ExpansionTile and the
|
||||
// Cupertino expansion tile both announce their state as the first line of
|
||||
// aria-description ("Expanded" / "Collapsed"); an expanded Cupertino tile
|
||||
// Material expansion tile both announce their state as the first line of
|
||||
// aria-description ("Expanded" / "Collapsed"); an expanded Material tile
|
||||
// merges with its read-only text child into one <textarea> node.
|
||||
const tileState = (title) =>
|
||||
evaluate(`(() => {
|
||||
@@ -343,7 +343,7 @@ try {
|
||||
await delay(900);
|
||||
};
|
||||
// Search is a transient page above the shell: the action opens /search and
|
||||
// the Cupertino host mounts the field after its page transition.
|
||||
// the Material host mounts the field after its page transition.
|
||||
const openSearch = async () => {
|
||||
await tapExact('Search');
|
||||
await waitFor(async () => (await path()) === '/search', 'the /search route');
|
||||
@@ -575,54 +575,54 @@ try {
|
||||
await capture('search-selection-material-phone-dark-field-summary');
|
||||
await emulateScheme('light');
|
||||
|
||||
// ---- Cupertino host, phone -----------------------------------------------
|
||||
await navigate(`${origin}/runs?platform=cupertino`, 390, 844);
|
||||
// ---- Material host, phone -----------------------------------------------
|
||||
await navigate(`${origin}/runs`, 390, 844);
|
||||
await assertText('Release train run', 'the Runs list');
|
||||
await searchFor('release', 'run #7 · step 5 · output');
|
||||
await assertReleaseResults('cupertino phone');
|
||||
await assertText('Kind: All kinds', 'the Cupertino kind control');
|
||||
await capture('search-selection-cupertino-phone-results');
|
||||
await assertReleaseResults('material phone');
|
||||
await assertText('Kind: All kinds', 'the Material kind control');
|
||||
await capture('search-selection-material-phone-results');
|
||||
|
||||
await clickPrefix('release-report.txt');
|
||||
await assertArtifactVisit('cupertino phone');
|
||||
await capture('search-selection-cupertino-phone-artifact-visit');
|
||||
await assertArtifactVisit('material phone');
|
||||
await capture('search-selection-material-phone-artifact-visit');
|
||||
|
||||
await searchFor('retired', 'run #7 · step 5 · evidence');
|
||||
await clickPrefix('run #7 · step 5 · evidence');
|
||||
await assertPlainSummary('cupertino phone', 'a retired field hit');
|
||||
await capture('search-selection-cupertino-phone-retired-summary');
|
||||
await assertPlainSummary('material phone', 'a retired field hit');
|
||||
await capture('search-selection-material-phone-retired-summary');
|
||||
|
||||
await searchFor('release', 'release-report.txt');
|
||||
await clickPrefix('release-report.txt');
|
||||
await assertArtifactVisit('cupertino phone (reopened)');
|
||||
await assertArtifactVisit('material phone (reopened)');
|
||||
await searchFor('missing', 'missing.log');
|
||||
await clickPrefix('missing.log');
|
||||
await assertPlainSummary('cupertino phone', 'an unknown-visit artifact hit');
|
||||
await capture('search-selection-cupertino-phone-unknown-visit-summary');
|
||||
await assertPlainSummary('material phone', 'an unknown-visit artifact hit');
|
||||
await capture('search-selection-material-phone-unknown-visit-summary');
|
||||
|
||||
await searchFor('release', 'run #7 · step 5 · output');
|
||||
await clickPrefix('run #7 · step 5 · output');
|
||||
await assertFieldSummary('cupertino phone');
|
||||
await capture('search-selection-cupertino-phone-field-summary');
|
||||
await assertFieldSummary('material phone');
|
||||
await capture('search-selection-material-phone-field-summary');
|
||||
|
||||
await searchFor('retired', 'run #7 · step 5 · evidence');
|
||||
await clickPrefix('run #7 · step 5 · evidence');
|
||||
await recordRetiredAfterField('cupertino phone');
|
||||
await capture('search-selection-cupertino-phone-retired-after-field-summary');
|
||||
await recordRetiredAfterField('material phone');
|
||||
await capture('search-selection-material-phone-retired-after-field-summary');
|
||||
|
||||
// ---- Cupertino host, desktop ---------------------------------------------
|
||||
await navigate(`${origin}/runs?platform=cupertino`, 1280, 800);
|
||||
// ---- Material host, desktop ---------------------------------------------
|
||||
await navigate(`${origin}/runs`, 1280, 800);
|
||||
await assertText('Release train run', 'the Runs list');
|
||||
await searchFor('release', 'run #7 · step 5 · output');
|
||||
await assertReleaseResults('cupertino desktop');
|
||||
await capture('search-selection-cupertino-desktop-results');
|
||||
await assertReleaseResults('material desktop');
|
||||
await capture('search-selection-material-desktop-results');
|
||||
await clickPrefix('release-report.txt');
|
||||
await assertArtifactVisit('cupertino desktop');
|
||||
await capture('search-selection-cupertino-desktop-artifact-visit');
|
||||
await assertArtifactVisit('material desktop');
|
||||
await capture('search-selection-material-desktop-artifact-visit');
|
||||
await searchFor('release', 'run #7 · step 5 · output');
|
||||
await clickPrefix('run #7 · step 5 · output');
|
||||
await assertFieldSummary('cupertino desktop');
|
||||
await capture('search-selection-cupertino-desktop-field-summary');
|
||||
await assertFieldSummary('material desktop');
|
||||
await capture('search-selection-material-desktop-field-summary');
|
||||
|
||||
evidence.pageErrors = pageErrors;
|
||||
console.log(JSON.stringify(evidence, null, 2));
|
||||
|
||||
Reference in New Issue
Block a user