storebound/tests/fixtures/console/asc-apps-card.html
CRT b39e44e6ab console fill: one app shown twice is one app; App Privacy opens by app id via the API
`console fill apple-app-privacy` without apple.appId stopped at "the app
in the list" with "more than one app matches: X | X" for an account with
one app: the Apps grid names each app twice (the icon link's aria-label
and the title link), both opening the same /apps/<id>/... page.

- pickApp tells hits apart by the app they open (/apps/<id>, else the
  link target), not by name. Two apps of one name with different targets
  still stop and are listed.
- Without apple.appId, but with App Store Connect API credentials, the
  app id is looked up from apple.bundleId (GET /v1/apps?filter[bundleId],
  as `apple status` does), cached in .storebound/console-app-ids.json, and
  App Privacy opens by deep link. Without credentials, or when the lookup
  fails, the Apps list by name is used, and the log says so.

Fixture asc-apps-card.html (a card with the name in the title and an
aria-label); tests for both paths.
2026-10-12 06:32:21 +08:00

22 lines
1.4 KiB
HTML

<!doctype html>
<!-- MODELED, not recorded: App Store Connect > Apps as a grid of app cards. Each card names its app twice: the icon link
carries the name as aria-label and the title link shows it as text (plus a tooltip), both opening the same
/apps/<id>/... page. One app with one card is ONE match, not "more than one app matches". 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>
<button type="button" aria-label="Add Apps">+</button>
<ul aria-label="Apps list">
<li class="app-card">
<a href="/asc-card/apps/6800000001/distribution/ios/version/inflight" aria-label="Example Game"><img alt="" width="64" height="64" src="data:image/gif;base64,R0lGODlhAQABAAAAACw="></a>
<a href="/asc-card/apps/6800000001/distribution/ios/version/inflight" title="Example Game">Example Game</a>
<span>iOS 1.0 Prepare for Submission</span>
</li>
<li class="app-card">
<a href="/asc-card/apps/6800000002/distribution/ios/version/inflight" aria-label="Other App"><img alt="" width="64" height="64" src="data:image/gif;base64,R0lGODlhAQABAAAAACw="></a>
<a href="/asc-card/apps/6800000002/distribution/ios/version/inflight" title="Other App">Other App</a>
<span>iOS 2.1 Ready for Distribution</span>
</li>
</ul>
<button type="button">Submit for Review</button>
</body></html>