Fix Bills locale test to target the occurrence drawer link

Merged
SU
2mo ago
+3-1

Summary

Fix the failing Bills controller locale regression test introduced in 4c9d2dc2ecb592a65535e8597d9238dec65add21 (#3901).

The Next up link opens a bill occurrence in the drawer and includes display=drawer and occurrence query parameters. The test still searched for the former bare bill URL, so it found no matching element despite the date being rendered correctly.

Resolve the expected occurrence and assert the French localized date inside its actual drawer link. The date-rail assertion remains unchanged. No production code changes.

Validation

  • Full bin/rails test with two workers: 10,478 runs, 44,216 assertions, 0 failures, 0 errors, 33 skips (seed 49674).
  • bin/rubocop -f github -a: passed.
  • bundle exec erb_lint app -a: passed (733 files).
  • npm run lint: passed (135 files).
  • bin/brakeman --no-pager: passed.
  • git diff --check: passed.
  • System tests not run locally: this changes only a controller test selector, with no application or browser behavior changes.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the French locale date test to check for the matching bill occurrence in a drawer link.