Files
actionbook__actionbook/packages/cli-v2/package.json
mcfn.feng 89b40c9e0f [packages/cli-v2]test: add wait_page_ready poll and limit parallel threads
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).
2026-03-30 16:53:10 +08:00

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"
}