mirror of
https://github.com/actionbook/actionbook.git
synced 2026-09-19 03:28:06 +08:00
f119e54565
Add `browser network requests` and `browser network request <id>` commands. - Per-tab ring buffer (500 cap) stores TrackedRequest with URL, method, resource type, status, headers (normalized HashMap), post data, timestamps - CDP event handlers for Network.requestWillBeSent / Network.responseReceived - Filters: --filter (URL substring), --type, --method, --status (exact/class/range) - Response body fetched on-demand via Network.getResponseBody - Chrome internal URLs filtered from tracking - 9 unit tests + 5 e2e tests Closes ACT-882
35 lines
731 B
Rust
35 lines
731 B
Rust
//! E2E test suite for actionbook CLI v1.0.0.
|
|
//!
|
|
//! Single binary entry point — all test modules compile into one binary
|
|
//! to avoid per-file link overhead.
|
|
//!
|
|
//! Tests are gated by `RUN_E2E_TESTS=true`. Without this env var every
|
|
//! test is skipped (returns immediately).
|
|
//!
|
|
//! Run with:
|
|
//! RUN_E2E_TESTS=true cargo test --test e2e -- --test-threads=1 --nocapture
|
|
|
|
mod batch_snapshot;
|
|
mod browser_lifecycle;
|
|
mod cloud_mode;
|
|
mod cookies;
|
|
mod describe_state;
|
|
mod element_details;
|
|
mod element_read;
|
|
mod harness;
|
|
mod iframe;
|
|
mod inspect_point;
|
|
mod interaction;
|
|
mod logs;
|
|
mod navigation;
|
|
mod network;
|
|
mod page_info;
|
|
mod pdf;
|
|
mod query;
|
|
mod screenshot;
|
|
mod snapshot;
|
|
mod storage;
|
|
mod tab_management;
|
|
mod timeout;
|
|
mod wait;
|