Skip to content

test(e2e): 26 of 27 profile specs never run, and the one that does targets deleted routes #592

Closed

Description

@thinkclay

27 Playwright specs live under tests/e2e/profile/. The config's testMatch allow-list selects exactly one of them, and that one asserts against routes the app no longer has.

Evidence

playwright.config.ts:16 — testMatch lists 9 patterns. The only profile one is **/profile-audit-magiclink.spec.ts.

Never run:

profile-education.spec.ts            profile-wizard-flow.spec.ts
profile-completion-modal.spec.ts     profile-completion-tracking.spec.ts
resume-upload.spec.ts                background-check-dispute.spec.ts
responsive-profile.spec.ts           responsive-auth.spec.ts
responsive-discover.spec.ts          responsive-office.spec.ts
responsive-application-wizard.spec.ts
test-a013…a019 (7 dashboard-profile specs)
test-r004…r009 (6 profile-section specs)

The one that does run targets a dead URL space. tests/e2e/profile/PROFILE_AUDIT_PLAN.md:60 lists /dashboard/profile, /dashboard/profile/general, /dashboard/profile/employment, … — the live routes are /profile/*. Worse, six of the paths it checks are now redirect stubs after the IA consolidation:

old route now
/profile/general redirect → /profile/resume (general/index.tsx:12)
/profile/employment redirect → /profile/resume
/profile/education redirect → /profile/experience
/profile/certifications redirect → /profile/skills
/profile/import-review redirect → /profile/resume
/profile/id-verification redirect → /profile/verification

So test-r004-profile-general, test-r005-profile-employment, test-r007-profile-certifications, test-r008-profile-education, test-a015, test-a016, test-a018 are all written against screens that no longer exist. Re-enabling them as-is would ship a known-red selection.

apps/scaffald/app/(protected)/profile/_layout.tsx:22 also still declares Stack.Screen entries for all six merged-away routes.

Acceptance

  • Specs targeting merged-away routes are rewritten against /profile/resume, /profile/skills, /profile/experience, /profile/verification, or deleted.
  • PROFILE_AUDIT_PLAN.md and profile-audit-magiclink.spec.ts use the live /profile/* paths.
  • The rewritten profile specs are added to testMatch and pass.
  • _layout.tsx drops the Stack.Screen entries for redirect stubs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXbugpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions