Repository navigation
test(browser): the row beside the tabs stays one line on 390 to 430 px phones - #944
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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
expectOneLineholds these checks. The "with room" tests used the same checks inline before.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.jsin all three engines: 124 passed, 2 skipped.npm run lint: exit 0.zone-grid.spec.js:203). It passed 5 of 5 times when repeated.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:
🤖 Generated with Claude Code