Skip to content

test(ios): committed ASWebAuthenticationSession fixture + CI lane #2449

Open

Description

@thymikee

Purpose

Follow-up to #2438 / #2448: give the in-place com.apple.SafariViewService sign-in-sheet drive a committed fixture and CI coverage on the real path.

Status: the fixture half is done

The committed fixture landed via #4708 (7c1934fc, released v0.21.40) — not as an expo-web-browser flow, but as a native ASWebAuthenticationSession lab:

  • examples/test-app/modules/auth-session-lab/, presented from SettingsScreen.tsx (open-auth-session-lab, :115-121);
  • a loopback IdP (examples/test-app/src/auth-idp-server.mjs);
  • a lane script wired to pnpm test-app:maestro:auth:ios (root package.json:212 → scripts/run-test-app-auth-session-lane.mjs).

Remaining defect: nothing drives it through submit, and CI never runs it

Verified against origin/main 3c68c19ed3:

  1. examples/test-app/maestro-ios/auth-session-sheet.yaml asserts the sheet's Email/Password/LOGIN text and stops — its own comment names the open blocker iOS Simulator: regular iOS snapshot presentation requires a valid viewport while an ASWebAuthenticationSession login sheet is loading (intermittent, ~30-60% of flows on CI) #4593 ("Stop before typing or submitting, which can encounter the capture refusals in iOS Simulator: regular iOS snapshot presentation requires a valid viewport while an ASWebAuthenticationSession login sheet is loading (intermittent, ~30-60% of flows on CI) #4593"), still open. The semantic sign-in flow this issue asks for (wait label="LOGIN" → press textfield + type → fill role=securetextfield → press LOGIN → assert return to app) is therefore not expressible on the current lane.
  2. No workflow in .github/workflows/ invokes test-app:maestro:auth:ios, so the lane exists but the regression guard does not run.

Required behavior

  1. Extend the Maestro lane through typing, submit, and the return to the app once iOS Simulator: regular iOS snapshot presentation requires a valid viewport while an ASWebAuthenticationSession login sheet is loading (intermittent, ~30-60% of flows on CI) #4593's capture refusals are resolved — with the cold-start caveat from the 2026-09-10 comment: wait stable / wait <element> before reading the sheet rather than snapshotting immediately.
  2. Invoke the lane from CI so the lane fails if the sheet is not served (the route-bypass + runner-serve guard the original body asked for).

Completion conditions

CI runs the lane on the shipped runner; the flow types, submits, and asserts the return to the app; a regression that breaks the in-place serve turns CI red.

Blocked by: #4593 for the typing/submit half. The CI-invocation half is independent of it and can land first against the current assert-only flow.

Activity

  1. thymikee commented on Sep 10, 2026

    @thymikee
    MemberAuthor

    Sequenced behind #2448 deliberately: this lane asserts the semantic sign-in flow (wait label="LOGIN" → press role=textfield + type → fill role=securetextfield → submit), which only passes once the in-place serve lands. Building it against main first would land a red lane.

    Plan when #2448 merges: stack the fixture + lane on it, then validate live on a simulator. Note the cold-start caveat — the first capture after a cold runner can return 0 nodes (pre-existing, tracked as #2343), so the lane should wait stable/wait <element> before reading the sheet rather than snapshotting immediately.

  2. thymikee commented on Nov 23, 2026

    @thymikee
    MemberAuthor

    Current state: body rewritten against origin/main 3c68c19 (2026-11-23 maintainer sweep, T105). The fixture half landed as #4708 (v0.21.40, native ASWebAuthenticationSession lab, loopback IdP, lane script); the issue now owns the driven half — submit is blocked by #4593 and no workflow runs the lane.
    Previous body is preserved at the issue's edit history (the Edited marker in the header) and archived locally; no copy is republished here.

  3. apex-sentinel-staging commented on Nov 23, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: feature

    The issue requests adding/ extending a Maestro test flow and wiring the existing test-app auth session lane into CI; it is an enhancement/internal test coverage task, with one part explicitly blocked by #​4593 but the CI invocation still actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions