feat(e2e-ui): comprehensive Playwright page tests#227
Merged
Conversation
Adds 8 new test files covering all admin UI pages: - page-smoke.spec.ts: Visits all 33 instance admin pages + 28 tenant admin pages + 5 instance-only access denial tests (66 tests total). Verifies no 500 errors and no JS console errors on each page. - auth-flows.spec.ts: Forgot password, reset password, OTP login, and error pages (401-503) render correctly (9 tests). - database-pages.spec.ts: Tables, Schema Viewer, SQL Editor load and show expected content; SQL Editor can run a simple query (4 tests). - security-pages.spec.ts: Security Settings, Client Keys, RLS Policies load and show expected content (3 tests). - platform-pages.spec.ts: Features/Configuration, Instance Settings, Database Config, Storage Config, Monitoring load correctly (5 tests). - api-services-pages.spec.ts: API Explorer, Realtime, Email Settings, AI Providers load correctly (4 tests). - account-pages.spec.ts: Account Settings, Appearance load correctly (2 tests). - knowledge-base-detail.spec.ts: Creates a KB then verifies all 5 sub-pages (overview, tables, graph, search, settings) load without errors (5 tests). - playwright.dev.config.ts: Dev config for running tests against an existing dev server without setup/provisioning pipeline. Total: ~98 new tests across 8 files. Combined with existing 188 tests, the suite now covers all 30+ sidebar pages from both admin perspectives.
- auth-flows: use .first() for forgot-password regex (strict mode violation) - auth-flows: fix error page routes (pathless layout group = /401 not /errors/401) - knowledge-base-detail: fix rawCreateKnowledgeBase arg order - security-pages: relax client-keys assertion (match any content) - page-smoke: wait for networkidle on instance-only page redirects (flaky) - database-pages: improve SQL editor interaction with response waiting
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.
Summary
playwright.dev.config.tsfor running tests against an existing dev serverTest Coverage
CI Impact
No CI workflow changes needed — Go tests already skip when only
admin/files change via the existingdorny/paths-filtersetup. The new tests run as part of the existingtest-e2e-uijob.Testing
All 286 tests (existing + new) compile successfully via
playwright test --list. CI will validate full execution.