portal-member: harness expects login slug in signed-in-as; field renders displayName #1476

Closed
opened 2026-09-14 21:24:55 +00:00 by matou-build-agent · 2 comments

The failure

portal-member is 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: pair is recorded green in this run, and legs.json carries 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, the portal-member record (ANSI stripped):

Locator: locator('[data-field="signed-in-as"]')
Expected substring: "e2e-portal-member"
Received string:    " Signed in as E2E Portal Member"
Timeout: 30000ms
  - Expect "toContainText" with timeout 30000ms
  - waiting for locator('[data-field="signed-in-as"]')
    63 × locator resolved to <p data-v-d9632ffc="" data-field="signed-in-as" class="oc-portal-home__who"> Signed in as E2E Portal Member</p>

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: true is set on the assertion, so case is not the difference — the hyphens are (e2e-portal-member vs E2E Portal Member).

The product is rendering what the design contract asks for. dashboard/src/components/portal/PortalHome.vue:11:

<p class="oc-portal-home__who" data-field="signed-in-as">
  Signed in as {{ identity.displayName }}
</p>

docs/ux/wireframes/portal/pt-s1-home.html:42 — the UI contract for PT-S1 — shows a human display name, not a login slug:

<span class="who" data-field="signed-in-as">Signed in as <b>Mere Kahu</b></span>

The harness is the one asserting the wrong string. app/tests/e2e/fixtures/portalJourney.ts:270 reuses the sign-in credential as the expected rendered text:

await expect(page.locator('[data-field="signed-in-as"]')).toContainText(username, {
  timeout: 30_000,
  ignoreCase: true,
});

username here is the login name. At the call site, app/tests/e2e/journey.droplet.spec.ts:85-86 defines both values, and the correct one is already in scope:

const PORTAL_MEMBER_USERNAME = 'e2e-portal-member';
const PORTAL_MEMBER_DISPLAY_NAME = 'E2E Portal Member';

but only the username is threaded into the failing leg (journey.droplet.spec.ts:757-760), while createActiveMember at portal-s1e is handed both (:590-591) — so the account's displayName really is E2E Portal Member, and the page is rendering the account's truth.

Why the sibling leg passed the same field: portal-s1e (green, 7841ms) calls assertPortalEmptyDoors, which at portalJourney.ts:235 only asserts .toBeVisible() on [data-field="signed-in-as"] — it never reads the text. cutover.ts:243 likewise asserts visibility only. portal-member is 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.29 answered (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 -tlnp shows caddy on :80/:443, control-plane on :8080, kanidmd on 127.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.vue and 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:

  1. Give assertPortalMemberJourney (app/tests/e2e/fixtures/portalJourney.ts:258-273) a displayName parameter alongside username — username stays the sign-in credential, displayName becomes the expected text at :270.
  2. Pass PORTAL_MEMBER_DISPLAY_NAME from the portal-member call site (app/tests/e2e/journey.droplet.spec.ts:757-760), exactly as portal-s1e already passes it to createActiveMember at :590-591.
  3. Keep ignoreCase: true; the assertion then reads toContainText('E2E Portal Member') against " Signed in as E2E Portal Member" and holds.

Worth folding in while there: assertPortalEmptyDoors and cutover.ts assert 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.vue to render the login slug would break the PT-S1 contract.

drive 20260914T205845Z red at portal-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: 30000
evidence: /home/swarm/session-runner/idss/test-results/drive-droplet/20260914T205845Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `portal-member` is 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: `pair` is recorded **green** in this run, and `legs.json` carries **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`, the `portal-member` record (ANSI stripped): ``` Locator: locator('[data-field="signed-in-as"]') Expected substring: "e2e-portal-member" Received string: " Signed in as E2E Portal Member" Timeout: 30000ms - Expect "toContainText" with timeout 30000ms - waiting for locator('[data-field="signed-in-as"]') 63 × locator resolved to <p data-v-d9632ffc="" data-field="signed-in-as" class="oc-portal-home__who"> Signed in as E2E Portal Member</p> ``` 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: true` is set on the assertion, so case is not the difference — the hyphens are (`e2e-portal-member` vs `E2E Portal Member`). **The product is rendering what the design contract asks for.** `dashboard/src/components/portal/PortalHome.vue:11`: ```vue <p class="oc-portal-home__who" data-field="signed-in-as"> Signed in as {{ identity.displayName }} </p> ``` `docs/ux/wireframes/portal/pt-s1-home.html:42` — the UI contract for PT-S1 — shows a human display name, not a login slug: ```html <span class="who" data-field="signed-in-as">Signed in as <b>Mere Kahu</b></span> ``` **The harness is the one asserting the wrong string.** `app/tests/e2e/fixtures/portalJourney.ts:270` reuses the sign-in credential as the expected rendered text: ```ts await expect(page.locator('[data-field="signed-in-as"]')).toContainText(username, { timeout: 30_000, ignoreCase: true, }); ``` `username` here is the login name. At the call site, `app/tests/e2e/journey.droplet.spec.ts:85-86` defines **both** values, and the correct one is already in scope: ```ts const PORTAL_MEMBER_USERNAME = 'e2e-portal-member'; const PORTAL_MEMBER_DISPLAY_NAME = 'E2E Portal Member'; ``` but only the username is threaded into the failing leg (`journey.droplet.spec.ts:757-760`), while `createActiveMember` at `portal-s1e` is handed both (`:590-591`) — so the account's `displayName` really is `E2E Portal Member`, and the page is rendering the account's truth. **Why the sibling leg passed the same field:** `portal-s1e` (green, 7841ms) calls `assertPortalEmptyDoors`, which at `portalJourney.ts:235` only asserts `.toBeVisible()` on `[data-field="signed-in-as"]` — it never reads the text. `cutover.ts:243` likewise asserts visibility only. `portal-member` is 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.29` answered (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 -tlnp` shows caddy on `:80`/`:443`, `control-plane` on `:8080`, `kanidmd` on `127.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.vue` and 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: 1. Give `assertPortalMemberJourney` (`app/tests/e2e/fixtures/portalJourney.ts:258-273`) a `displayName` parameter alongside `username` — `username` stays the sign-in credential, `displayName` becomes the expected text at `:270`. 2. Pass `PORTAL_MEMBER_DISPLAY_NAME` from the `portal-member` call site (`app/tests/e2e/journey.droplet.spec.ts:757-760`), exactly as `portal-s1e` already passes it to `createActiveMember` at `:590-591`. 3. Keep `ignoreCase: true`; the assertion then reads `toContainText('E2E Portal Member')` against `" Signed in as E2E Portal Member"` and holds. Worth folding in while there: `assertPortalEmptyDoors` and `cutover.ts` assert 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.vue` to render the login slug would break the PT-S1 contract. drive `20260914T205845Z` red at `portal-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: 30000` evidence: `/home/swarm/session-runner/idss/test-results/drive-droplet/20260914T205845Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 2e161898384a -->
Author
Member

swarm-claim host=bens-mac-04 run=24085
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=24085 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1476 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1476,
  "status": "success",
  "commits": [
    "d511ce303f9d40b696d607694032e1b83de17deb"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/portalJourney.ts",
    "app/tests/e2e/journey.droplet.spec.ts"
  ],
  "tests": [
    {
      "command": "npx tsc --noEmit -p app/tsconfig.json (no error in either edited file; remaining errors are pre-existing .vue module-resolution under plain tsc)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "assertPortalMemberJourney takes a displayName param; username stays the sign-in credential, displayName is the expected [data-field=signed-in-as] text": "app/tests/e2e/fixtures/portalJourney.ts — signature gains displayName; assertion at the greeting now uses displayName with ignoreCase kept (commit d511ce30)",
    "PORTAL_MEMBER_DISPLAY_NAME is threaded from the portal-member call site as portal-s1e already passes it to createActiveMember": "app/tests/e2e/journey.droplet.spec.ts — portal-member call site now passes PORTAL_MEMBER_DISPLAY_NAME between USERNAME and TEMP_PASSWORD (commit d511ce30)",
    "No product or wireframe change (PT-S1 contract preserved)": "diff touches only test fixtures + spec + STATUS.md; PortalHome.vue and pt-s1-home.html untouched",
    "Regression guard folded in: the right identity is asserted where the field was previously visibility-only": "app/tests/e2e/fixtures/portalJourney.ts — assertPortalEmptyDoors gains a displayName param and asserts toContainText(displayName) on [data-field=signed-in-as]; call site threads PORTAL_MEMBER_DISPLAY_NAME (commit d511ce30)"
  },
  "summary": "portal-member and empty-doors legs assert the member's DISPLAY name (the PT-S1 contract) instead of the login slug, closing the stale-fixture red.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1476 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1476, "status": "success", "commits": [ "d511ce303f9d40b696d607694032e1b83de17deb" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/portalJourney.ts", "app/tests/e2e/journey.droplet.spec.ts" ], "tests": [ { "command": "npx tsc --noEmit -p app/tsconfig.json (no error in either edited file; remaining errors are pre-existing .vue module-resolution under plain tsc)", "exit_code": 0 } ], "criteria": { "assertPortalMemberJourney takes a displayName param; username stays the sign-in credential, displayName is the expected [data-field=signed-in-as] text": "app/tests/e2e/fixtures/portalJourney.ts — signature gains displayName; assertion at the greeting now uses displayName with ignoreCase kept (commit d511ce30)", "PORTAL_MEMBER_DISPLAY_NAME is threaded from the portal-member call site as portal-s1e already passes it to createActiveMember": "app/tests/e2e/journey.droplet.spec.ts — portal-member call site now passes PORTAL_MEMBER_DISPLAY_NAME between USERNAME and TEMP_PASSWORD (commit d511ce30)", "No product or wireframe change (PT-S1 contract preserved)": "diff touches only test fixtures + spec + STATUS.md; PortalHome.vue and pt-s1-home.html untouched", "Regression guard folded in: the right identity is asserted where the field was previously visibility-only": "app/tests/e2e/fixtures/portalJourney.ts — assertPortalEmptyDoors gains a displayName param and asserts toContainText(displayName) on [data-field=signed-in-as]; call site threads PORTAL_MEMBER_DISPLAY_NAME (commit d511ce30)" }, "summary": "portal-member and empty-doors legs assert the member's DISPLAY name (the PT-S1 contract) instead of the login slug, closing the stale-fixture red.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1476
No description provided.