#[test]Expand description
Attribute macro for Viewpoint tests.
This macro transforms async test functions to include TestHarness setup
and cleanup. Fixture parameters (Page, BrowserContext, Browser) are
automatically extracted from the harness.
§Basic Usage
#[viewpoint_test_macros::test]
async fn my_test(page: &Page) -> Result<(), Box<dyn std::error::Error>> {
page.goto("https://example.com").goto().await?;
Ok(())
}§Configuration Options
headless = true|false- Run browser in headless mode (default: true)timeout = <ms>- Default timeout in milliseconds (default: 30000)scope = "browser"|"context"- Fixture scoping levelbrowser = "<fn_name>"- Function returning shared browser (required when scope = “browser”)context = "<fn_name>"- Function returning shared context (required when scope = “context”)