# NatureHub Manual Testing Record

Use this checklist on the local demo, a live-key staging copy, and the final
GoDaddy subdirectory. Enter the browser/device, result, date, and notes. Do not
record API keys or private paths.

## Test environment

| Field | Value |
|---|---|
| Tester | |
| Date | |
| URL | |
| Mode | Demo / Live |
| Browser and version | |
| Operating system/device | |
| Screen reader (if used) | |

Result values: **Pass**, **Fail**, **Blocked**, or **Not applicable**.

## Baseline verification completed

The implementation received the following repeatable baseline checks on
August 25, 2026. The remaining tables are intentionally left available for
final-host, device, browser, and assistive-technology sign-off.

| Check | Result | Notes |
|---|---|---|
| PHP syntax | Pass | PHP 8.2 checked all five PHP files |
| JavaScript syntax | Pass | All eleven ES module files parsed successfully |
| Demo JSON | Pass | File decoded as valid JSON |
| Credential pattern scan | Pass | No committed API key detected |
| Relative file/import references | Pass | All local references resolve |
| Subdirectory-path scan | Pass | No root-relative app asset or fetch paths |
| Unsafe DOM sink scan | Pass | No `innerHTML`, `insertAdjacentHTML`, or `document.write` use |
| Safe proxy failures | Pass | Missing key returns 503; invalid limit/code return 400; POST returns 405 |
| Demo home/search | Pass | Eight cards; keyword, state, and no-results states verified |
| Park detail | Pass | Sections, weather, map, and missing-field behavior rendered without console errors |
| Favorites | Pass | Add state, header count, saved view, and reload persistence verified |
| Trip planner | Pass | Duplicate-safe add, invalid-date error/focus, notes, dates, checklist, and reload persistence verified |
| Theme | Pass | Dark-theme toggle, accessible label, and reload persistence verified |
| Mobile | Pass | 320 × 640 viewport had no horizontal overflow; menu expanded and closed after navigation |
| Accessibility invariants | Pass | One H1, no duplicate IDs, no unlabeled controls, safe external links on checked views |
| Subdirectory hosting | Pass | Demo loaded at `/natureHub/` with eight cards and no browser warnings/errors |

## Setup and routing

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Load the subdirectory URL | Home renders with CSS and no missing local assets | | |
| Open `index.html` through PHP server | ES modules load without console errors | | |
| Open `#/explore`, `#/favorites`, `#/planner`, `#/about` | Correct view and one H1 per view | | |
| Use browser Back and Forward | Prior views and search parameters return | | |
| Refresh a hash route | Same view returns without a server 404 | | |
| Open an unknown route | App returns to Home safely | | |
| Open an invalid park code | Plain-language not-found state appears | | |

## Park search and filters

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Search a valid park name | Matching parks and a result count appear | | |
| Search by keyword/activity | Relevant loaded records appear when API supports it | | |
| Search nonsense text | Designed no-results state, no empty grid | | |
| Filter by one state | Only records for that state are returned | | |
| Filter by designation | Loaded cards are narrowed and count explains scope | | |
| Sort A–Z and Z–A | Visible cards reorder correctly | | |
| Choose Clear filters | Query, state, designation, and sort reset | | |
| Type quickly into search | Requests are debounced; stale results do not replace new ones | | |
| Choose Load more | Next unique records append; count updates | | |
| Simulate offline state | Plain-language error and retry control appear | | |
| Simulate NPS 429 | Rate-limit wording appears; no raw server response | | |
| Return invalid JSON from proxy | Invalid-response message appears | | |
| Delay the proxy beyond timeout | Timeout message and retry appear | | |

## Park detail

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Open a complete park record | Name, designation, states, description, and available sections render | | |
| Open a record missing images | Designed image fallback appears; no broken image icon | | |
| Open a record missing address | Address heading/value is omitted or helpful fallback appears | | |
| Open a record missing fees/hours | Empty section headings are not rendered | | |
| Inspect official links | New tab; `noopener noreferrer`; HTTP(S) only | | |
| Open a park with alerts | Alert summaries and details render | | |
| Open a park with no alerts | No empty alerts card is rendered | | |
| Review activities/topics | Only available values appear as readable tags | | |
| Revisit a park | It moves to first in Recent without duplication | | |
| Visit six parks | Recent contains the newest five | | |
| Clear recent history | Section disappears and stays clear after reload | | |

## Weather and map

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Open a park with coordinates | Weather loads only on detail view | | |
| Review current conditions | Temperature, feels-like, condition, wind, and available precipitation appear | | |
| Review forecast | Understandable labels/icons and high/low values appear | | |
| Confirm weather note | Official-alert reminder is visible | | |
| Block Open-Meteo | Weather error does not break park detail | | |
| Open map | Correct center, marker, popup, zoom, and OSM attribution | | |
| Navigate between two parks | One map instance at a time; no duplicate-map error | | |
| Test narrow viewport | Map resizes without horizontal page scrolling | | |
| Block Leaflet or map tiles | Location text remains and failure is explained | | |
| Open record without coordinates | Helpful weather/map unavailable states appear | | |

## Favorites and recent history

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Save a park from a card | Heart state, live message, and header count update | | |
| Save same park again after navigation | No duplicate is created | | |
| Remove favorite from card/detail | State and count update everywhere after render | | |
| Open Favorites | All saved compact cards rebuild from localStorage | | |
| Remove a favorite in Favorites | Card disappears and count updates | | |
| Cancel Clear all | Favorites remain | | |
| Confirm Clear all | All favorites are removed | | |
| Block localStorage | App remains browsable and storage warning appears | | |

## Trip planner

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Add park from detail | One planner entry is created and planner opens | | |
| Add same park again | No duplicate trip entry | | |
| Save valid arrival/departure dates | Dates persist after reload | | |
| Set departure before arrival | Accessible error; data is not saved | | |
| Add/edit personal notes | Notes persist after reload | | |
| Add checklist item | Item appears and persists | | |
| Edit checklist text | Updated text persists | | |
| Mark item complete/incomplete | State, accessible name, and strike-through update | | |
| Remove checklist item | Only selected item is removed | | |
| Remove one park and cancel | Entry remains | | |
| Remove one park and confirm | Entry and associated details disappear | | |
| Print summary | Header/actions hide; content is legible and cards do not split unnecessarily | | |
| Cancel Clear complete plan | All trip data remains | | |
| Confirm Clear complete plan | Planner returns to useful empty state | | |

## Theme and persistence

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Clear stored theme and emulate system dark | Dark theme starts automatically | | |
| Toggle theme | Theme, icon, accessible name, and theme-color update | | |
| Reload | Chosen theme persists | | |
| Review all states in both themes | Text, controls, focus, notices, and disabled states remain readable | | |

## Demo mode

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Visit `?demo=1` | Visible Demo Data banner; sample search works without NPS key | | |
| Enable in About | Same visible label and persistent mode | | |
| Disable in About or with `?demo=0` | Banner disappears; local PHP proxy is used | | |
| Search demo by state and keyword | Only matching sample records appear | | |
| Open a sample park | Sample detail and optional sample alert render; weather/map are live | | |

## Keyboard and assistive technology

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Press Tab from page start | Skip link appears and moves focus to main | | |
| Navigate all controls by keyboard | Logical order; no keyboard trap | | |
| Open mobile navigation | Focus moves inside; expanded state is announced | | |
| Press Escape in mobile navigation | Menu closes and focus returns to button | | |
| Toggle favorite with keyboard | Pressed state and status message are announced | | |
| Submit invalid planner dates | Focus moves to departure and error is announced | | |
| Use screen-reader heading list | One H1 and logical headings per view | | |
| Use landmarks/regions list | Header/nav/main/footer and labeled regions make sense | | |
| Inspect images | Scenic alt text or a named missing-image fallback | | |
| Inspect map | Text latitude/longitude alternative is available | | |
| Enable reduced motion | Nonessential animation and smooth scrolling stop | | |

## Responsive and zoom

| Test | Expected result | Result | Notes |
|---|---|---|---|
| 320 × 568 CSS pixels | No page-level horizontal scroll; controls usable | | |
| Common phone portrait/landscape | Navigation, cards, forms, and map remain usable | | |
| Tablet and desktop | Grids expand without overly long text lines | | |
| 200% browser zoom at 1280px viewport | Content reflows; no clipped controls or text | | |
| Long park names/content | Cards and headings wrap without overlap | | |

## PHP proxy and security

| Test | Expected result | Result | Notes |
|---|---|---|---|
| Run `php -l` on every PHP file | No syntax errors | | |
| Call proxy without key | Safe 503 JSON; no filesystem path or secret | | |
| Call endpoint with POST | 405 JSON and `Allow: GET` | | |
| Pass array parameters | 400 safe error | | |
| Pass invalid state/park code/search characters | 400 safe error | | |
| Request limit 0, 51; negative/huge start | 400 safe error | | |
| Attempt to pass a URL/endpoint parameter | It is ignored or rejected; destination cannot change | | |
| Request `api/config.php` on Apache | Denied | | |
| Request `api/config.example.php` on Apache | Denied | | |
| List `/api/` or another directory | Directory index denied | | |
| Inspect live page source/network | NPS key never appears | | |
| Inspect response headers | CSP, frame denial, nosniff, referrer, and permissions policies present | | |
| Break upstream response | Safe 502/504 JSON; details only in server log | | |
| Verify HTTPS certificate | Valid; no mixed-content requests | | |

## Final release record

| Item | Result | Notes |
|---|---|---|
| No console errors in normal Home → Explore → Detail → Favorite → Planner flow | | |
| No exposed credentials in repository or uploaded public files | | |
| Canonical and Open Graph placeholder URLs replaced | | |
| Screenshot/social preview placeholders replaced where desired | | |
| All provider credits and attribution visible/documented | | |
| Final keyboard, mobile, zoom, live API, and config-denial checks passed | | |

## Defect record

| ID | Severity | Description | Reproduction | Resolution / owner |
|---|---|---|---|---|
| | | | | |

## November 27, 2026 update — pending verification

The August baseline above is historical, not verification of this release.

| Check | Expected | Result |
|---|---|---|
| Skip link on every hash route | Focus main without changing route | Pending |
| Case study at 320 CSS pixels and 400% zoom | No horizontal page overflow | Pending |
| Case study keyboard and screen reader | Logical headings, landmarks, focus and link names | Pending |
| Shell touch targets and header at 320px | Controls usable without clipping | Pending |
| Light/dark and forced colors | Text and focus remain distinguishable | Pending |
| Live and demo links | Correct mode and working app | Pending |
| axe and manual WCAG 2.2 AA review | Record findings and retest fixes | Pending |

## 2.0 release verification (2026-11-27)

| Check | Result | Notes |
|---|---|---|
| JavaScript syntax | Pass | All modules and service worker parsed with Node |
| PHP syntax | Pass | All five PHP files parsed |
| Example credentials | Pass | Placeholder only in config.example.php |
| Browser smoke test | Blocked | Chromium returned ERR_BLOCKED_BY_ADMINISTRATOR on local URL |
| 320px / 400% reflow, keyboard, screen reader | Pending | Verify on staging |
| Search submission | Pending | Typing must not change focus; Search submits |
| Compare two or three favorites | Pending | Test selection validation and missing fields |
| JSON export/import | Pending | Test valid backup, invalid dates, duplicate codes, cancel, oversize file |
| QA simulations | Pending | Confirm all five states and no real request interference |
| Service worker / offline | Pending | Wait for installation, reload offline, open planner, confirm live data errors |
| Light and dark contrast | Pending | Run axe/WAVE and manual contrast checks |
| Live API / Apache headers | Pending | Requires configured hosting |

Historical August checks are not proof of this release.


## 2.1 release checks (2026-11-27)

Prior baseline results apply only to the earlier release.

| Test | Result | Notes |
|---|---|---|
| JavaScript and PHP syntax | Pass | Node and PHP parsers |
| Local catalog and PAD-US query fixtures | Pass | Node regression tests in tests/ |
| Browser test | Blocked | Chromium navigation returned ERR_BLOCKED_BY_ADMINISTRATOR; no browser pass claimed |
| Live PAD-US query | Pending | Verify CORS, ArcGIS response and result labels on GoDaddy |
| Regional details / maps / weather | Pending | Verify official coordinates and fallback for missing coordinates |
| Accessibility filter combinations | Pending | Verify keyboard, screen reader, unknown exclusion, no results |
| Trip budget and templates | Pending | Verify save/reload, duplicate prevention, export/import and focus |
| PWA update | Pending | Verify install, cache update and offline shell on staging |
| Mobile / zoom / WCAG | Pending | Test 320px, 400% zoom, light/dark, touch, focus and screen reader |

Run `node --test tests/*.test.mjs` for the pure-data and mocked API checks.
