Skip to content

Add passing E2E tests for Find Help page with mocked category API a…#23

Merged
james-cross merged 1 commit intoStreetSupport:stagingfrom
james-cross:feature/find-help-e2e-tests
Jun 3, 2025
Merged

Add passing E2E tests for Find Help page with mocked category API a…#23
james-cross merged 1 commit intoStreetSupport:stagingfrom
james-cross:feature/find-help-e2e-tests

Conversation

@james-cross
Copy link
Collaborator

This PR introduces a full suite of end-to-end tests for the Find Help section using Playwright:

Tests included:
✅ Page loads with fallback postcode form when geolocation is blocked

✅ Manual postcode entry sets location and triggers results view

✅ Category and subcategory filters update service results correctly (mocked API)

✅ Map toggle displays map view when clicked

✅ Service cards render correctly based on stubbed geolocation

Tech notes:
/api/get-categories route is mocked to ensure dropdown population

Geolocation is stubbed with coordinates (Manchester) to ensure reliable results

All tests passing as of 2025-06-03

test-checklist.ms updated accordingly

@james-cross james-cross merged commit 1d2d971 into StreetSupport:staging Jun 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant