feat(automation): implement dual-mode browser automation with DevTools adapter - Add explicit result types for all automation operations (NavigationResult, FormFillResult, ClickResult, WaitResult, ModalResult) - Implement BrowserDevToolsAdapter for real browser automation via Chrome DevTools Protocol - Create IRacingSelectorMap with CSS selectors for all 18 workflow steps - Add AutomationConfig for environment-based adapter selection (mock/dev/production) - Update DI container to support mode switching via AUTOMATION_MODE env var - Add 54 new tests (34 integration + 20 unit), total now 212 passing - Add npm scripts: companion:mock, companion:devtools, chrome:debug
This commit is contained in:
10
.env.test.example
Normal file
10
.env.test.example
Normal file
@@ -0,0 +1,10 @@
|
||||
# Test Environment Configuration
|
||||
# Copy this file to .env.test and adjust values as needed
|
||||
|
||||
# Use mock adapter for testing (no real browser automation)
|
||||
AUTOMATION_MODE=mock
|
||||
|
||||
# Test timeouts (can be shorter for faster tests)
|
||||
AUTOMATION_TIMEOUT=5000
|
||||
RETRY_ATTEMPTS=1
|
||||
SCREENSHOT_ON_ERROR=false
|
||||
Reference in New Issue
Block a user