Skip to main content

Module context

Module context 

Source
Expand description

Test context: the single object passed to every #[ferritest] function.

Wraps FixturePool and provides typed getters for built-in fixtures. This is the Rust equivalent of Playwright’s destructured { page, browser, context, testInfo }.

#[ferritest]
async fn my_test(ctx: TestContext) {
    let page = ctx.page().await?;
    page.goto("https://example.com", None).await?;
}

Structs§

TestContext
Context object passed to every #[ferritest] test function.