console fill: checkbox / radio ticks are gated on agreements only (help text like 'saved place in a game' no longer blocks Product Interaction); buttons keep the full word gate

This commit is contained in:
CRTkafa 2026-10-12 07:19:50 +08:00
parent 59150c1186
commit b48407115e
3 changed files with 26 additions and 2 deletions

View file

@ -964,3 +964,15 @@ describe.skipIf(!browser)('play-app-record (headless, modeled pages)', () => {
expect((await done).filled).toBe(4);
}, SLOW_TEST_MS);
});
test('ticks are gated on agreements only: help text with "saved" is fine, Developer Program Policies is not; buttons keep the full gate', async () => {
const { forbiddenTick, forbiddenControl } = await import('../cli/lib/console-forms');
const productInteraction = 'Product InteractionSuch as app launches, taps, clicks, scrolling information, music listening data, video views, saved place in a game, video, or song, or other information about how the user interacts with the app';
expect(forbiddenTick(productInteraction)).toBe(false);
expect(forbiddenTick('NameIncluding first or last name')).toBe(false);
expect(forbiddenTick('Developer Program Policies')).toBe(true);
expect(forbiddenTick('US export laws')).toBe(true);
expect(forbiddenTick('Kabul ediyorum')).toBe(true);
expect(forbiddenControl('Save')).toBe(true);
expect(forbiddenControl('Publish')).toBe(true);
});