mirror of
https://github.com/actionbook/actionbook.git
synced 2026-09-19 03:28:06 +08:00
89b40c9e0f
Two fixes for remaining flaky E2E failures (5-10 random tests per run): 1. Limit parallel threads to 8 (package.json test:e2e) to reduce Chrome process contention and CPU pressure during parallel test runs. 2. Add wait_page_ready() helper that polls document.readyState every 200ms (up to 2s) after session start/goto. Called in all 14 local start_session() functions and both harness helpers. Prevents tests from interacting with pages before DOM is ready under high parallel load. Result: 441 passed, 0 failed (was 5-10 random failures per run).
18 lines
560 B
JSON
18 lines
560 B
JSON
{
|
|
"name": "@actionbookdev/cli-v2",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Actionbook CLI v2 - Browser automation for AI agents",
|
|
"scripts": {
|
|
"build": "cargo build --release",
|
|
"test": "cargo test",
|
|
"test:ut": "cargo test --lib",
|
|
"test:e2e": "RUN_E2E_TESTS=true cargo test --test e2e -- --test-threads=8",
|
|
"lint": "pnpm lint:fmt && pnpm lint:clippy",
|
|
"lint:fmt": "cargo fmt -- --check",
|
|
"lint:clippy": "cargo clippy -- -D warnings",
|
|
"fmt": "cargo fmt",
|
|
"clean": "cargo clean"
|
|
},
|
|
"license": "MIT"
|
|
} |