portal-member: harness expects login slug in signed-in-as; field renders displayName #1476
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1476
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
portal-memberis the first and only red of 27 legs (verdict.json:"firstRedLeg": "portal-member",green: 26, red: 1, skip: 0). It is not the KNOWN own-VPS carrier frontier named in the briefing:pairis recorded green in this run, andlegs.jsoncarries no skip reasons at all (skip: 0) — there is no skip entry in this drive's records naming this leg, or any leg, as out of scope.The leg reaches the member's signed-in Portal home successfully and then fails a single text assertion. The harness expects the member's login name; the page renders the member's display name.
Evidence
artifacts/legs.json/artifacts/journey.json, theportal-memberrecord (ANSI stripped):The locator resolved 63 times over the full 30s — the element was present and stable the whole time. This is not a timing, render, or sign-in failure; the round trip landed the member's home.
ignoreCase: trueis set on the assertion, so case is not the difference — the hyphens are (e2e-portal-membervsE2E Portal Member).The product is rendering what the design contract asks for.
dashboard/src/components/portal/PortalHome.vue:11:docs/ux/wireframes/portal/pt-s1-home.html:42— the UI contract for PT-S1 — shows a human display name, not a login slug:The harness is the one asserting the wrong string.
app/tests/e2e/fixtures/portalJourney.ts:270reuses the sign-in credential as the expected rendered text:usernamehere is the login name. At the call site,app/tests/e2e/journey.droplet.spec.ts:85-86defines both values, and the correct one is already in scope:but only the username is threaded into the failing leg (
journey.droplet.spec.ts:757-760), whilecreateActiveMemberatportal-s1eis handed both (:590-591) — so the account'sdisplayNamereally isE2E Portal Member, and the page is rendering the account's truth.Why the sibling leg passed the same field:
portal-s1e(green, 7841ms) callsassertPortalEmptyDoors, which atportalJourney.ts:235only asserts.toBeVisible()on[data-field="signed-in-as"]— it never reads the text.cutover.ts:243likewise asserts visibility only.portal-memberis the sole place the field's content is asserted, and it is the sole place the wrong expected value is used.Live box corroboration
The box at
170.64.184.29answered (read-only). It is healthy, which rules out the infra layer:systemctl --failed --no-legend→ empty, no failed units.curl http://127.0.0.1:8080/→200, control plane serving the dashboard SPA shell.ss -tlnpshows caddy on:80/:443,control-planeon:8080,kanidmdon127.0.0.1:8443, postgres, netbird mgmt/signal/relay — the full expected listener set.Nothing on the machine failed. The member signed in, the identity resolved, and the home rendered its
displayName.Suspected layer
Harness. A stale expected-value in the E2E fixture, not a product defect and not infra. The product matches
PortalHome.vueand the PT-S1 wireframe; the assertion encodes an identity field the page was never specified to show.What plugging it needs
Thread the display name into the member-journey assertion instead of reusing the credential:
assertPortalMemberJourney(app/tests/e2e/fixtures/portalJourney.ts:258-273) adisplayNameparameter alongsideusername—usernamestays the sign-in credential,displayNamebecomes the expected text at:270.PORTAL_MEMBER_DISPLAY_NAMEfrom theportal-membercall site (app/tests/e2e/journey.droplet.spec.ts:757-760), exactly asportal-s1ealready passes it tocreateActiveMemberat:590-591.ignoreCase: true; the assertion then readstoContainText('E2E Portal Member')against" Signed in as E2E Portal Member"and holds.Worth folding in while there:
assertPortalEmptyDoorsandcutover.tsassert only visibility on this field, so no other leg guards that the right identity is shown. Asserting the display name in one of them too would stop a wrong-member regression sliding through.No product or wireframe change is warranted — changing
PortalHome.vueto render the login slug would break the PT-S1 contract.drive
20260914T205845Zred atportal-member:expect(locator).toContainText(expected) failed Locator: locator('[data-field="signed-in-as"]') Expected substring: "e2e-portal-member" Received string: " Signed in as E2E Portal Member" Timeout: 30000evidence:
/home/swarm/session-runner/idss/test-results/drive-droplet/20260914T205845Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=bens-mac-04 run=24085
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1476 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope