Skip to content

test(web): fix remote-nav sequences for current menu layout#492

Merged
brickbots merged 1 commit into
mainfrom
worktree-web-test-nav-fixes
Jun 23, 2026
Merged

test(web): fix remote-nav sequences for current menu layout#492
brickbots merged 1 commit into
mainfrom
worktree-web-test-nav-fixes

Conversation

@brickbots

Copy link
Copy Markdown
Owner

Summary

The Selenium web tests drive PiFinder's remote keypad with fixed key sequences and assert the resulting screen (ui_type/title/current_item). Two menu changes on main shifted item indices, deterministically breaking 16 navigation tests (not flakiness — confirmed by re-running in isolation):

  • Objects submenu gained an "Obs Lists" item at index 3, shifting Custom (3→4), Name Search (4→5) and Set Filters (5→6).
  • Start submenu reordered so GPS Status is now index 3 (was 2): Focus, Align, Align (Day), GPS Status.

The real menu order was confirmed by driving a live headless instance and reading /api/current-selection after each keypress.

Changes

File Tests Fix
test_web_remote_filter.py 11 Objects→Set Filters hop RDDDDDRDDDDDD (+ docstring/comments)
test_web_remote_objects.py 2 Custom RDDDRRDDDDR; Set Filters RDDDDDRRDDDDDDR (+ docstring)
test_web_remote.py 2 Name Search RDDDDRRDDDDDR (test_remote_entry, test_remote_entry_digits)
test_web_locations.py 1 test_locations_add_remote: Start→GPS Status RDDRDDD

Only key sequences and their docstrings/comments changed — no assertions or test logic altered.

Validation

Run against a live headless PiFinder instance:

  • Filter file: clean batch 11/11 passed
  • Objects (2), remote-entry (2), locations-add-remote (1): all passed16/16

Out of scope

The two other failures in the current -m web run — test_locations_testloc_present and test_locations_add_test_locations — are not navigation. Both pass in isolation; they're order/state-dependent (a definition-order data dependency and a Materialize form-CRUD first-add timing issue). Left unchanged here.

🤖 Generated with Claude Code

The Selenium web tests drive PiFinder's remote keypad with fixed key
sequences and assert the resulting screen. Two menu changes on main
shifted item indices, deterministically breaking 16 navigation tests:

- Objects submenu gained an "Obs Lists" item at index 3, shifting
  Custom (3->4), Name Search (4->5) and Set Filters (5->6).
- Start submenu reordered so GPS Status is now index 3 (was 2).

Update the affected key sequences plus their docstrings/comments:
- test_web_remote_filter.py (11): Objects->Set Filters hop RDDDDD->RDDDDDD
- test_web_remote_objects.py (2): Custom RDDDR->RDDDDR; Set Filters ->RDDDDDDR
- test_web_remote.py (2): Name Search RDDDDR->RDDDDDR
- test_web_locations.py (1): Start->GPS Status RDD->RDDD

Verified: all 16 pass against a live headless instance.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@brickbots brickbots merged commit 56fabb4 into main Jun 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant