Repository navigation
Conversation
…nsive smoke spec Adds phone, narrow phone, landscape and tablet projects next to the desktop ones. They run only the new responsive spec, which the desktop projects run too: the connections page must fit the screen, and a SQLite query must run from the SQL editor with the editor usably wide and Run and the result fully on screen. Gaps the mobile issues have not fixed yet are marked as expected failures with their issue numbers. Signed-off-by: Tingri Lohar Mohammed Mohsin <[email protected]>
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summary (commit 6ec4393)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 6ec4393)Status: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by claude-sonnet-5.5 · Input: 250 · Output: 664 · Cached: 140.3K Review guidance: REVIEW.md from base branch |
debba
left a comment
There was a problem hiding this comment.
Thanks, Mohsin. I like that the touch projects run just the responsive spec and that you test a tap on Run. Could you split the known layout gaps from the query smoke test? The compact case marks the whole flow with test.fail, then hits the known width failure before tapping Run. The same expected failure would also accept broken connection setup or query execution. Please keep a passing smoke test for setup and query execution and scope the expected failures to the specific layout checks.
Glad to have your first PR here! If you’d like to join us on Discord, we’d be happy to see you there. https://discord.com/invite/K2hmhfHRSt
…ailures to layout checks
|
Thanks for the review! Split it up as you suggested:
Connection setup and cleanup moved to Will join the Discord too, thanks! |
debba
left a comment
There was a problem hiding this comment.
Thanks, Mohsin. The split came out well: runs a query now has no test.fail at all, and the connection setup moved into beforeEach, so a broken setup can't hide behind an expected failure.
I ran the spec on the branch against a local web server on the four Chromium-based projects: 16 of 16 passed, with the compact and short-landscape gaps failing as expected. I couldn't run the WebKit projects on my machine, so I'll rely on CI for those once I approve the workflow run. I also broke the query on purpose (SELECT * FROM missing_table) on phone-chromium, and runs a query failed as it should.
I'm approving this. Two small follow-ups, fine in a separate PR:
- The
expect.pollforwindow.__e2e_editoruses the default 5s timeout. It now runs three times per project on eight projects, and under load it timed out twice for me. An explicit timeout (something like 15s) would make it less flaky. - The comment about importing
BREAKPOINTSfrom #1610: that PR now stores rem values (48 and 64), so importing them directly would compare rem againstviewport.widthand the compacttest.faillines would stop applying. Either keep the px copy or convert when you import.
I'll approve the CI run and do a manual pass before merging.
Part of #1593: the test infrastructure piece agreed in the issue.
Changes
Projects: five compact/touch projects next to the unchanged desktop ones, each with
hasTouchandisMobile:phone-chromiumphone-webkitphone-narrow-webkitphone-landscape-chromiumtablet-chromiumThey run only
e2e/web/tests/responsive.spec.ts(testMatch), so the existing specs don't multiply. The desktop projects run the new spec too.responsive.spec.ts:Expected failures: today's gaps are marked with
test.failand the issue number, so CI stays green and they report as unexpected passes once fixed:Docs: a "Compact and touch projects" section in
docs/web/WEB_E2E_MATRIX.md, with the devices, what is checked, the known gaps and how to run them.Notes
intermediate: 768,wide: 1024) with a comment to importBREAKPOINTSfromutils/responsive.tsonce it lands. If feat(web-ui): establish shared responsive layout and viewport conventions #1610 happens to fix one of the gaps, that test reports an unexpected pass and itstest.failline can go..monaco-editor, since it has no role of its own. The Discord callout is dismissed throughpage.addLocatorHandlerwhen it covers the page.Testing
Run in a Linux Codespace with the same apt packages as CI, through
e2e/web/run.sh:responsive.spec.tson all 8 projects with--repeat-each=3: 48/48 (the expected failures counted as passing)ai-inline-completion.spec.ts, which also failed in my baseline run on unchangedmainand passes 4/4 alone with both the old and new config.pnpm typecheck:web-e2e, Prettier, ESLint andpnpm web:docspassOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.