Merge origin/main into shots-glyphs
This commit is contained in:
commit
e331a316d7
3 changed files with 63 additions and 7 deletions
|
|
@ -225,6 +225,29 @@ describe.skipIf(!browser)('engine (headless, modeled pages)', () => {
|
|||
await page.close();
|
||||
});
|
||||
|
||||
test('User Access under a plain heading (real App Store Connect): the radios are found in the dialog', async () => {
|
||||
const page = await open('apple-app-record-heading.html');
|
||||
const s = await fillPage(page, formDef('apple-app-record', pageAnswers('apple-app-record')), pageAnswers('apple-app-record'));
|
||||
expect(s.fallback).toBe(false);
|
||||
expect(s.missing).toEqual([]);
|
||||
expect(s.filled).toContain('name');
|
||||
expect(await clicks(page)).toEqual([]);
|
||||
await page.close();
|
||||
});
|
||||
|
||||
test('a lasting partial miss fills every field that was found and leaves only the missing one', async () => {
|
||||
const page = await open('apple-app-record-renamed.html');
|
||||
const def = formDef('apple-app-record', pageAnswers('apple-app-record'));
|
||||
const s = await fillPage(page, def, pageAnswers('apple-app-record'), new Set(), true);
|
||||
expect(s.fallback).toBe(false);
|
||||
expect(s.missing).toEqual(['name']);
|
||||
expect(s.highlighted).toContain('name');
|
||||
expect(s.filled).toContain('bundleId');
|
||||
expect(await checked(page, 'iOS')).toBe(true);
|
||||
expect(await clicks(page)).toEqual([]);
|
||||
await page.close();
|
||||
});
|
||||
|
||||
test('a renamed label stops filling and falls back to guidance', async () => {
|
||||
const page = await open('apple-app-record-renamed.html');
|
||||
const s = await fillPage(page, formDef('apple-app-record', pageAnswers('apple-app-record')), pageAnswers('apple-app-record'));
|
||||
|
|
|
|||
23
tests/fixtures/console/apple-app-record-heading.html
vendored
Normal file
23
tests/fixtures/console/apple-app-record-heading.html
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!doctype html>
|
||||
<!-- MODELED from a real report (2026-10-12): User Access is a plain heading, not a fieldset/group. Not recorded: a sanitized stand-in for App Store Connect > Apps > + > New App, written from Apple's public
|
||||
help page "Add a new app" (platforms, Name, Primary Language, Bundle ID, SKU, User Access, Create).
|
||||
Placeholder data only. -->
|
||||
<html lang="en"><head><meta charset="utf-8"><title>Apps - App Store Connect</title><script src="_common.js"></script></head>
|
||||
<body>
|
||||
<h1>Apps</h1>
|
||||
<div role="dialog" aria-labelledby="t" data-step>
|
||||
<h2 id="t">New App</h2>
|
||||
<fieldset><legend>Platforms</legend>
|
||||
<label><input type="checkbox"> iOS</label> <label><input type="checkbox"> macOS</label>
|
||||
<label><input type="checkbox"> tvOS</label> <label><input type="checkbox"> visionOS</label>
|
||||
</fieldset>
|
||||
<p><label>Name <input type="text" maxlength="30"></label></p>
|
||||
<p><label>Primary Language <select><option value="">Choose</option><option>English (U.K.)</option><option>English (U.S.)</option><option>Turkish</option></select></label></p>
|
||||
<p><label>Bundle ID <select><option value="">Choose</option><option>Other App - com.example.other</option><option>Example Game - com.example.game</option></select></label></p>
|
||||
<p><label>SKU <input type="text"></label></p>
|
||||
<div class="h">User Access</div><div>
|
||||
<label><input type="radio" name="access"> Limited Access</label> <label><input type="radio" name="access"> Full Access</label>
|
||||
</div>
|
||||
<button type="button">Help</button> <button type="button">Cancel</button> <button type="button">Create</button>
|
||||
</div>
|
||||
</body></html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue