Skip to content

Commit 1cd0559

Browse files
authored
Chore/update readme and test checklist (#94)
* fixes trello card move error * updates readme and test checklist to include most recent
1 parent 2875f38 commit 1cd0559

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,19 @@ This project uses **Jest** and **React Testing Library** for unit and integratio
2323
npm run test
2424
```
2525

26+
### Running End-to-End Tests
27+
28+
```bash
29+
npm run test:e2e
30+
```
31+
2632
### Test Setup Highlights
2733

2834
- Babel is configured via `babel.config.json` (not `.js` due to Jest limitations).
2935
- Module path aliases (e.g. `@/components/...`) are resolved using `moduleNameMapper` in `jest.config.cjs`.
3036
- Geolocation and other browser APIs are stubbed or guarded for compatibility.
37+
- End-to-end tests use Playwright (`playwright.config.ts`) which launches the
38+
Next.js server automatically.
3139
- The `__mocks__` directory includes mocks for modules like `leaflet` and `react-leaflet`.
3240

3341
All tests must pass before merging any pull request into `staging` or `main`.

test-checklist.ms

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This document tracks key test coverage across the Street Support Network rebuild
1717
| Component | Status | Notes |
1818
|----------------------|-------------|-------------------------------------------|
1919
| `LocationContext` | ⏳ TODO | Behaviour under different locations |
20+
| `LocationContext` | ✅ Done | Context updates and geolocation request |
2021
| Timetable View | 🚧 Planned | Based on rebuild roadmap |
2122
| Geolocation Fallback | 🚧 Planned | Will stub `navigator.geolocation` |
2223

@@ -40,4 +41,29 @@ This document tracks key test coverage across the Street Support Network rebuild
4041
**File:** `e2e/find-help.spec.ts`
4142
**Status:** ✅ All tests passing
4243
**Date:** 2025-06-03
43-
**Notes:** Mocks used for category API; geolocation stubbed for result validation
44+
**Notes:** Mocks used for category API; geolocation stubbed for result validation
45+
**Notes:** Mocks used for category API; geolocation stubbed for result validation
46+
47+
### ✅ Homepage – End-to-End (Playwright)
48+
49+
**Coverage:**
50+
- Map renders on page load
51+
- Location markers become visible
52+
53+
**File:** `e2e/homepage.spec.ts`
54+
**Status:** ✅ All tests passing
55+
**Date:** 2025-06-09
56+
**Notes:** Uses mocked map pins for reliability
57+
58+
### ✅ Organisation Entry – End-to-End (Playwright)
59+
60+
**Coverage:**
61+
- Organisation details load correctly
62+
- Accordions expand and collapse
63+
- Correct heading text asserted
64+
- Footer disclaimer visible
65+
66+
**File:** `e2e/organisation-entry.spec.ts`
67+
**Status:** ✅ All tests passing
68+
**Date:** 2025-06-11
69+
**Notes:** Uses sample slug during local testing

0 commit comments

Comments
 (0)