storebound/tests/fixtures/console/play-chooser-one.html
CRT 8b669f5c86 console fill play-app-record: read the real account chooser, match names loosely
With the copied Chrome profile, `console fill play-app-record` stopped with
"no developer account named "<name>" (play.developerAccount) on the
chooser" although the name was there: the real "Choose developer account"
rows are not plain /developers/<id> text links (nested spans, icon-font
glyphs, role=button rows with the id in a data attribute, an avatar row
whose id only its click reveals).

- readChooser: every visible clickable row in the page content (header
  and navigation left out); the name is the first visible line (icon
  fonts, images and aria-hidden parts skipped); the id comes from
  /developers/<id> in any attribute, else a data-*id attribute, else ''
  (the row is then opened through the account-switch gate and the id is
  read from the URL). "Create a new developer account" is not an account.
- matchAccount: exact spelling, then spaces and case aside (Turkish I/ı
  folded), then a unique prefix. A case pair (ACME / Acme) needs the
  exact spelling; otherwise it stops and lists both with their ids.
- One developer account: picked (a different play.developerAccount is
  said). Not found: every visible account is listed with its id.
- The resolved developerId is remembered as before.

Fixtures play-chooser-real.html (the owner's chooser shape, placeholder
names) and play-chooser-one.html; tests for exact, case pair, prefix,
single account and not found.
2026-10-12 07:12:05 +08:00

14 lines
960 B
HTML

<!doctype html>
<!-- MODELED: Play Console's "Choose developer account" for a Google login with ONE developer account (an avatar row
whose id only its click shows) plus "Create a new developer account", which is not an account. Placeholder data. -->
<html lang="en"><head><meta charset="utf-8"><title>Choose developer account - Play Console</title><script src="/_common.js"></script></head>
<body>
<main>
<h1>Choose developer account</h1>
<div role="list">
<div role="listitem"><div role="button" tabindex="0" id="only"><img alt="Example AI" width="24" height="24" src="data:image/gif;base64,R0lGODlhAQABAAAAACw="><span>Example AI</span></div></div>
<div role="listitem"><a href="/signup"><span class="material-icons">add</span><span>Create a new developer account</span></a></div>
</div>
</main>
<script>document.getElementById('only').addEventListener('click', () => { location.href = './developers/7000000005/app-list'; });</script>
</body></html>