Skip to content

test: add Playwright E2E tests (local only)#39

Merged
rprabhat merged 5 commits intomainfrom
shelled-rubidium
Apr 7, 2026
Merged

test: add Playwright E2E tests (local only)#39
rprabhat merged 5 commits intomainfrom
shelled-rubidium

Conversation

@rprabhat
Copy link
Copy Markdown
Collaborator

@rprabhat rprabhat commented Apr 7, 2026

Add Playwright end-to-end tests for SensibleDB Explorer.

Changes

  • Add configured for local testing (won't run in CI)
  • Add with 3 tests:
    • Complete user journey: load demo, view graph, chat with AI
    • Sidebar navigation works
    • Can load demo database

Running E2E Tests

sensibledb-explorer-frontend@0.1.0 e2e:headed
playwright test --headed

Error: Process from config.webServer exited early.

This opens a headed browser and runs through the full user journey:

  1. Launch app → Home view
  2. Load demo data → Graph view with nodes/edges
  3. Navigate to Chat → Send NL query
  4. View Report → See metrics

Note: E2E tests configured to NOT run in CI pipeline - only run locally with

rprabhat added 5 commits April 7, 2026 10:03
- Add Ollama client for on-device LLM inference (qwen2.5-coder, nomic-embed-text)
- Add NL-to-SQL translation for natural language queries
- Add document ingestion pipeline (CSV/MD/JSON/TXT chunking)
- Add ModelSettings component for model management
- Add 263 Vitest tests with 46% coverage (app, api, nl-to-sensibleql, components)
- Fix jsdom ESM compatibility by switching to happy-dom
- Extract useCodeMirror from SensibleQLEditor (CodeMirror wrapper)
- Extract useGraphData + useForceSimulation from GraphView
- Extract useAppInit + useKeyboardShortcuts from App
- Extract useReportGenerator from ReportView
- Add tests for all new composables

297 tests passing, 41% coverage, lib/ now at 67%
- Add playwright.config.ts configured for local testing (not CI)
- Add e2e/explorer.spec.ts with 3 tests:
  - complete user journey: load demo, view graph, chat
  - sidebar navigation works
  - can load demo database
- Add npm scripts: e2e, e2e:headed

Run locally: npm run e2e:headed
@rprabhat rprabhat merged commit 0bf000a into main Apr 7, 2026
7 of 8 checks passed
@rprabhat rprabhat deleted the shelled-rubidium branch April 7, 2026 10:16
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.

1 participant