Commit 2e9559d
Fix: Stop hardcoding exact Nominatim geocoding coordinates in e2e tests (#1619)
verify_the_map_coordinates and fill_required_form_fields both asserted
an exact lat/lng string for a "Nairobi County" geocoder search. That
value is returned by the live Nominatim/OSM API, not fixed test data,
and its centroid for large administrative areas drifts as OSM boundary
data gets edited over time (confirmed by querying the API directly:
it currently returns -1.302398 for this query, not the hardcoded
-1.3026148499999999). Assert the result lands within Nairobi instead
of matching an exact string, so the test survives normal upstream
geocoding data changes.
Claude-Session: https://claude.ai/code/session_0142M19Se37Y1pxoNy8HvTKV
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>1 parent ad1e1b6 commit 2e9559d
2 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments