Skip to content

test(web-e2e): add compact and touch Playwright projects with a responsive smoke spec - #1612

Open
Mohsintl wants to merge 2 commits into
TabularisDB:mainfrom
Mohsintl:e2e-mobile-projects
Open

Mohsintl wants to merge 2 commits into
TabularisDB:mainfrom
Mohsintl:e2e-mobile-projects

Conversation

@Mohsintl

@Mohsintl Mohsintl commented Nov 18, 2026 •

Copy link
Copy Markdown

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 hasTouch and isMobile:

    Project Device Viewport Layout
    phone-chromium Pixel 7 412 x 839 compact
    phone-webkit iPhone 13 390 x 664 compact
    phone-narrow-webkit iPhone SE 320 x 568 compact
    phone-landscape-chromium Pixel 7, landscape 863 x 360 intermediate
    tablet-chromium touch tablet 768 x 1024 intermediate

    They 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:

    • the connections page fits the screen without sideways scrolling
    • a SQLite query runs from the SQL editor: the editor is at least half the screen wide, Run is fully on screen and is tapped on touch projects (clicked on desktop), and the result header and cell are fully on screen. Partly visible does not count, since a panel squeezed into a strip is on screen but not usable.
  • Expected failures: today's gaps are marked with test.fail and 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

Testing

Run in a Linux Codespace with the same apt packages as CI, through e2e/web/run.sh:

  • responsive.spec.ts on all 8 projects with --repeat-each=3: 48/48 (the expected failures counted as passing)
  • full suite on all projects: 48/49. The failure is ai-inline-completion.spec.ts, which also failed in my baseline run on unchanged main and passes 4/4 alone with both the old and new config.
  • pnpm typecheck:web-e2e, Prettier, ESLint and pnpm web:docs pass

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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]>
@kilo-code-bot

kilo-code-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • docs/web/WEB_E2E_MATRIX.md
  • e2e/web/tests/responsive.spec.ts
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)
  • docs/web/WEB_E2E_MATRIX.md
  • e2e/web/playwright.config.ts
  • e2e/web/tests/responsive.spec.ts

Reviewed by claude-sonnet-5.5 · Input: 250 · Output: 664 · Cached: 140.3K

Review guidance: REVIEW.md from base branch main

@debba debba left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Mohsintl

Copy link
Copy Markdown
Author

Thanks for the review! Split it up as you suggested:

Connection setup and cleanup moved to beforeEach/afterEach. Ran the spec 5x on all phone and tablet projects with retries off: 100/100 passed, no flakes. Docs updated to match.

Will join the Discord too, thanks!

@debba debba left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.poll for window.__e2e_editor uses 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 BREAKPOINTS from #1610: that PR now stores rem values (48 and 64), so importing them directly would compare rem against viewport.width and the compact test.fail lines 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.

This branch has not been deployed

No deployments
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.

2 participants