Test coverage: WelcomeStep2 "Connect now" path #171
Reference in New Issue
Block a user
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?
PR #168 reshaped the welcome step-2 PSA CTA from a single Continue + tiny
Connect now →link into an explicit two-button split (Connect <PSA> now+Connect later). Existing tests infrontend/src/pages/welcome/__tests__/WelcomeStep2.test.tsxstill pass because thewelcome-step-2-connect-nowtestid is reused, but they only assert that the connect-now element exists — none of them exercise the new path:welcome-step-2-tile-connectwise→ clickwelcome-step-2-connect-nowonboardingApi.updateStepcalled with{step: 2, action: 'complete', data: {primary_psa: 'connectwise'}}/account/integrations(route stub already exists in the test harness on line 68)Also worth adding: a regression test that the
welcome-step-2-connect-nowbutton is hidden whenprimary_psa === 'none'(existing assertion just checks the testid isn't present, but should also verify the wider button row layout — onlyContinue+Skip this steprendered).Small — single test file edit.