Smoke Test
Smoke Test
Validates the full Sentinel + Playwright + HTTP bridge pipeline. This is the minimum viable test — if it passes, the infrastructure is working and specs can be authored with confidence.
Preconditions
- Vite dev server running on
http://localhost:1420 - HTTP bridge running on the configured bridge port (default: 9990)
- Bridge shim injection configured in
sentinel.config.yaml
Scenarios
1. App loads successfully
Navigate to the app base URL. The page loads without connection error and the accessibility snapshot contains meaningful content (not a blank page or error screen).
Expected: Page loads, DOM contains app shell elements (sidebar, header, or onboarding flow).
2. Bridge shim is installed
After page load, check browser console messages for bridge shim confirmation.
Expected: Console contains [bridge] HTTP bridge shim installed.
3. Bridge routes commands without errors
After page load, check that no network errors appear in the console related to bridge routing.
Expected: No Failed to fetch or network error messages in the console after page load.
4. Create a workspace
Create a new workspace via the onboarding flow: enter workspace name “Smoke Test Workspace” and submit.
Expected: Workspace is created. Sidebar shows the workspace name. Default page structure is visible.
5. Verify workspace loaded
After workspace creation, verify the workspace loaded successfully.
Expected: Sidebar navigation is visible with default page structure (at least one page listed).
6. Create a new page
Click the “New Page” button or use the create page action.
Expected: A new untitled page appears in the sidebar and the editor is focused.
7. Edit page content
Type a page title “Smoke Test Page” and body content “This is a smoke test.”
Expected: The title and content are visible in the editor. No errors in console.
8. Content persists after navigation
Navigate away from the page and back.
Expected: The page title “Smoke Test Page” and content “This is a smoke test.” persist after round-trip navigation.
Test Data
| Key | Value | Notes |
|---|---|---|
| workspace_name | Smoke Test Workspace | Created during scenario 4 |
| page_title | Smoke Test Page | Created during scenario 6 |
| page_content | This is a smoke test. | Typed during scenario 7 |
Notes
- This spec is intentionally minimal — it tests the pipeline, not app features exhaustively
- If scenarios 1-3 fail, no other specs in the suite should be expected to work
- The workspace creation flow may vary depending on whether existing workspaces exist — the bridge should provide a
fresh workspace via
--workspaceflag
Was this page helpful?
Thanks for your feedback!