frontend/docs/testing/INSPECTOR.md
This document outlines critical testing scenarios for the Rivet Inspector frontend application.
Development URL: http://localhost:5173 (or configured port) Production URL: https://inspect.rivet.dev Default RivetKit Endpoint: http://localhost:6420
Scenario: User visits inspector URL without a running RivetKit server
Steps:
http://localhost:6420Test Cases:
Given: No server running at the endpoint When: User clicks "Connect" Then: User is informed about server unavailability and CORS considerations
Given: Server at endpoint is not a RivetKit server When: User clicks "Connect" Then: User is informed that server is not a RivetKit server
Given: Browser blocks local network access When: User clicks "Connect" Then: User is informed about local network access requirement
Given: Valid RivetKit server at endpoint When: User clicks "Connect" Then: Navigate to main app view
Scenario: User visits inspector URL with a running RivetKit server at default endpoint
Steps:
http://localhost:6420Expected:
Scenario: User visits inspector URL with custom endpoint via query parameter
Steps:
http://localhost:6420)?u=http://localhost:6420Expected:
Scenario: User interacts with the main app view components
See UI Components Reference for detailed component specifications.
Layout:
┌─────────────┬──────────────────┬─────────────┐
│ Sidebar │ Content │ Details │
│ │ │ │
└─────────────┴──────────────────┴─────────────┘
Displays:
Test Cases:
Displays:
Test Cases:
Behavior:
Scenario: Details panel displays different content based on Rivet Actor state
See Actor States Reference for all possible states.
Displays:
Verify:
Displays:
Verify:
Displays:
Verify:
Displays:
Verify:
Displays:
Verify:
Displays:
Verify:
Displays:
Verify:
Scenario: User interacts with the console when connected to a running Rivet Actor
Prerequisites: Rivet Actor is running and inspector is successfully connected
Verify:
Scenario: User navigates through Rivet Actor detail tabs
Prerequisites: Rivet Actor is running and inspector is successfully connected
Verify:
Verify:
Verify:
Verify:
Verify:
Verify:
Verify:
Verify:
See Error States Reference for comprehensive error scenarios.
Verify: Connection loss is handled and reconnection is attempted
Verify: Disconnection is detected and auto-reconnect works
Verify: Connection can be re-established after refresh
Verify: Invalid URLs are rejected with error message
Verify: CORS issues show informative error message