8000 test(web): update stale browser assertions to the current design by InfinityPacer · Pull Request #13 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content

test(web): update stale browser assertions to the current design - #13

Merged
InfinityPacer merged 1 commit into
mainfrom
test/refresh-stale-browser-assertions
Sep 26, 2026
Merged

InfinityPacer merged 1 commit into
mainfrom
test/refresh-stale-browser-assertions

Conversation

@InfinityPacer
Copy link
Copy Markdown
Owner

Problem

Five browser scripts failed on main for reasons unrelated to any bug. They asserted behaviour that had changed on purpose in earlier releases, so the suite could not be used as a merge check.

Result

Only tests/ changes.

  • appearance-sorting and mobile-app expect the colours of the 0.3.0 neutral palette (--canvas #0f0f11 in dark, --line #e4e4e7 for the drawer border) instead of the pre-redesign values.
  • mobile-app and visual-feedback expect the demo ledger's weekly estimates as real amounts, computed from the demo data and required to be dollar amounts, instead of N/A.
  • visual-feedback drops checks for the overview tabs, #period, .metrics and the old mobile trend strip, which no longer exist. The trend painted-pixel check, chart style persistence and filter bar checks move to the merged overview. It also checks the current-page accent colour in the navigation.
  • report-preferences follows the per-page filter storage (meterleaf-report-filter-<page>) that docs/reporting.md describes. It checks that reports keep their own range, model and account across reloads, that the ledger and overview do not inherit them, and that the USD basis stays shared.
  • sync-refresh checks that the App layout hides the sync button outside the home screen, then opens it from the home screen.

Verification

Run sequentially against a demo backend, a non-demo Vite build and an isolated headless Chrome, each script in a fresh tab. All nine pass: browser.smoke, account-management, mobile-app, visual-feedback, appearance-sorting, report-preferences, sync-refresh, quota-pwa-layout, global-layout. bun run typecheck and bun test tests (337 pass) also pass.

🤖 Generated with Claude Code

Several browser scripts still asserted behaviour that changed on purpose:
the 0.3.0 neutral palette colours, the overview tabs and #period removed in
0.5.0, per-page filter storage, demo weekly estimates that are now amounts,
and the App layout showing the sync button only on the home screen. The
assertions now check the current contract, and checks for removed features
are dropped or moved to the view that replaced them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@InfinityPacer
InfinityPacer merged commit ba6e4bf into main Sep 26, 2026
2 checks passed
@InfinityPacer
InfinityPacer deleted the test/refresh-stale-browser-assertions branch September 26, 2026 07:33
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

0