1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Test framework for `Viewpoint` browser automation.
//!
//! This crate provides the primary testing API via `TestHarness`, along with
//! assertions and configuration for browser-based E2E tests.
//!
//! # Primary API: `TestHarness`
//!
//! The `TestHarness` provides explicit test setup with browser, context, and page access.
//! Cleanup happens automatically via `Drop`.
//!
//! ```no_run
//! use viewpoint_test::TestHarness;
//!
//! #[tokio::test]
//! async fn my_test() -> Result<(), Box<dyn std::error::Error>> {
//! let harness = TestHarness::new().await?;
//! let page = harness.page();
//!
//! page.goto("https://example.com").goto().await?;
//!
//! Ok(()) // harness drops and cleans up
//! }
//! ```
//!
//! # Fixture Scoping
//!
//! The harness supports different scoping levels:
//!
//! - `TestHarness::new()` - Test-scoped: new browser per test (default)
//! - `TestHarness::from_browser()` - Module-scoped: reuse browser, fresh context/page
//! - `TestHarness::from_context()` - Shared context: reuse context, fresh page only
pub use ;
pub use ;
pub use ;
pub use TestHarness;
// Re-export the test macro for convenience
pub use test;
// Re-export core types for convenience
pub use ;