console verify: an older page's long labelled radio still counts from page text when the sheet answers Yes / No; tests and the teaser follow the new sign-in details question and the added App Privacy step
This commit is contained in:
parent
b6ea9159d8
commit
327a85e042
3 changed files with 10 additions and 7 deletions
|
|
@ -388,6 +388,9 @@ export function verifyPlayDeclaration(form: Exclude<PlanOnlyFormId, 'play-app-co
|
|||
: { item: a.question, expected: `${labels[0]} ${wantOn ? 'checked' : 'unchecked'}`, seen: 'no control with that label', status: 'not-found' });
|
||||
continue;
|
||||
}
|
||||
// an older page shows a long labelled radio instead of Yes / No: read that from text when it is there
|
||||
const older = a.control === 'radio' && a.action !== 'untick' ? (a.altLabels ?? []).find(l => !/^(yes|no)$/i.test(l) && blob.includes(fold(l))) : undefined;
|
||||
if (older) { rows.push({ item: a.question, expected: want, seen: older, status: 'match' }); continue; }
|
||||
const plain = !want || /^(yes|no)$/i.test(want) || a.action === 'untick';
|
||||
if (plain) { rows.push({ item: a.question, expected: a.text, seen: 'not readable from page text', status: 'not-found', note: 'pass the input states: run the plan\'s verify.capture snippet and `--from -`' }); continue; }
|
||||
const shownAs = a.action === 'type' || a.action === 'choose' ? (blob.includes(fold(want)) ? want : null) : labels.find(l => blob.includes(fold(l))) ?? null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue