Skip to content

test(browser): the row beside the tabs stays one line on 390 to 430 px phones - #944

Merged
eizedev merged 2 commits into
mainfrom
test/narrow-tabs-row
Nov 25, 2026
Merged

eizedev merged 2 commits into
mainfrom
test/narrow-tabs-row

Conversation

@eizedev

@eizedev eizedev commented Nov 25, 2026

Copy link
Copy Markdown
Owner

#760 is fixed on main since #776: Settings shows only its icon on a phone, and the narrow tabs are tighter. #776 did not close the issue. This adds the browser tests #760 asked for, so the row does not take a second line again without a test failing.

Fixes #760

What the tests check

  • Phones of 390, 393, 412 and 430 px, in English and German, with touch and with a mouse: the tabs and the buttons share one line, Settings beside the tabs, the last button at the right edge, the buttons at the row's foot. A new helper expectOneLine holds these checks. The "with room" tests used the same checks inline before.
  • The touch tests also check the narrow layout.

Measured on main, the same in Chromium, Firefox and WebKit: one line in every case. German with touch at 390 px has the least room, about 3 px. With wider tab padding (0 0.8em) the new tests fail at 390 and 393 px in German.

German with touch still wraps at 360 and 375 px, which is outside #760: #943.

Checks

  • view-tabs.spec.js in all three engines: 124 passed, 2 skipped.
  • npm run lint: exit 0.
  • Full browser suite, run once on the first commit: 1 failure in an unrelated Firefox test (zone-grid.spec.js:203). It passed 5 of 5 times when repeated.
  • No changelog entry: no product code changes.

Neutral review

One round by an independent reviewer. It ran the spec and found no blocker: the tests match their titles, and replacing the old single 390 px German touch test lost no check.

I took two of its low findings:

  • The 360 px comment named only German, but the loop also runs English.
  • The touch loop now checks the narrow layout too.

🤖 Generated with Claude Code

eizedev and others added 2 commits November 25, 2026 19:56
…x phones

The tests of the tabs row now check one line at 390, 393, 412 and
430 px, in English and German, with a mouse and with touch. They share
one helper with the tests of reports with room. The case of #760 was
fixed by the icon-only Settings button; these tests keep it that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…shows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eizedev
eizedev merged commit 2c1a8b2 into main Nov 25, 2026
24 checks passed
@eizedev
eizedev deleted the test/narrow-tabs-row branch November 25, 2026 19:44
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.

Narrow report on a touch phone: the row beside the tabs takes a second line

1 participant