Skip to content

E2E: onboarding redirect (/wizard) breaks post-login assumptions #8

Description

@tomqwu

Problem

  • Multiple E2E tests assume login redirects to /app/schedule, but app can redirect to /wizard when onboarding is incomplete.
  • This causes failures like test_solver_workflow + mobile_responsive (mobile_login_flow).

Evidence

  • Full rebaseline: 1 fail after 105 passed (maxfail=1): tests/e2e/test_mobile_responsive.py::test_mobile_login_flow expected /app/schedule, got /wizard.
  • Solver workflow previously failed similarly.

Plan

  1. Centralize a helper/fixture to ensure onboarded state for E2E (detect /wizard then POST /api/onboarding/skip and proceed).
  2. Update affected tests to use the helper.
  3. Re-run tests/e2e (maxfail=1 loop) until onboarding redirect class is gone.

Acceptance

  • No E2E tests fail solely due to /wizard redirect after login.
  • All updated tests still validate schedule loads (page-title etc.).

Notes

  • Short-term patches applied in: tests/e2e/test_solver_workflow.py and tests/e2e/test_mobile_responsive.py; should be refactored into shared helper.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions