Compare commits

..

2 Commits

Author SHA1 Message Date
Alexander Whitestone
8be62f5de7 fix: point footer about link at static page (#59)
All checks were successful
Sanity Checks / sanity-test (pull_request) Successful in 4s
Smoke Test / smoke (pull_request) Successful in 10s
2026-04-17 01:27:43 -04:00
Alexander Whitestone
9455fca321 test: cover static about footer link regression 2026-04-17 01:15:53 -04:00
2 changed files with 11 additions and 32 deletions

View File

@@ -1,32 +0,0 @@
# Issue #41 Verification
Status: already implemented on main
Issue:
- #41 [P3] Service worker: cache crisis resources for offline
Acceptance criteria check:
1. Passed — offline page includes 988 call button, Crisis Text Line, and grounding techniques
2. Passed — service worker precaches `crisis-offline.html`
3. Passed — phone number is clickable via `href="tel:988"`
4. Passed — navigation timeout + offline fallback support intermittent connections
Evidence:
- `sw.js` precaches `/crisis-offline.html`
- `sw.js` contains `NAVIGATION_TIMEOUT_MS` and `AbortController`
- `crisis-offline.html` contains:
- `href="tel:988"`
- Crisis Text Line / `741741`
- grounding prompts for 5-4-3-2-1
- `tests/test_service_worker_offline.py` already exists on main and passes
Verification run from fresh main clone:
- `python3 -m pytest tests/test_service_worker_offline.py -q`
- `10 passed`
Prior implementation trail:
- Issue comment already states the core implementation is complete on main
- Closed PR #122 documented the already-complete implementation and added the offline guarantees test coverage that is now present on main
Recommendation:
- Close issue #41 as already implemented on main.

View File

@@ -0,0 +1,11 @@
from pathlib import Path
import re
def test_footer_about_link_points_to_static_about_page() -> None:
index_html = Path("index.html").read_text(encoding="utf-8")
assert Path("about.html").exists(), "repo must ship a static about page"
assert 'aria-label="About The Door"' in index_html
assert 'href="/about.html"' in index_html, "footer link should resolve under a plain static server"
assert not re.search(r'href="/about"(?!\.html)', index_html), "stale /about route should not remain in the footer"