CodingNic

Final Testing & Completion

Test Location and Unit Switching Together

Final Testing & Completion 20 min read

Test Location and Unit Switching Together

Test Location and Unit Switching Together

Task

Verify the two features that depend on shared application state.

Open

Load weather by search or location, toggle units, refresh, and repeat. If location permission is unavailable, test the denied-permission path.

Implementation

Changing units should preserve the location, update current and forecast values, and persist the selected unit after refresh.

Test

Watch the Network panel and confirm the new request uses the selected unit.

Expected result

Location and preference state work together without losing context.

Checkpoint

Before moving on, confirm the expected result in the running app and make sure the browser console has no blocking errors.