viewpoint-test
Test framework for browser automation with Playwright-style assertions.
This is the main crate for the Viewpoint browser automation framework. It provides everything you need to write browser tests in Rust.
Features
TestHarnessfor easy test setup with automatic cleanup- Fluent async assertions with auto-waiting
- Element and page assertions
- Fixture scoping (test, module, shared)
- Re-exports
viewpoint-corefor convenience
Quick Start
[]
= "0.1"
= { = "1.0", = ["macros", "rt-multi-thread"] }
use ;
async
Assertions
// Element assertions
expect.to_be_visible.await?;
expect.to_have_text.await?;
expect.to_have_attribute.await?;
// Page assertions
expect_page.to_have_url.await?;
expect_page.to_have_title.await?;
// Negation
expect.not.to_be_visible.await?;
Requirements
- Rust 1.70+
- Chromium browser (set
CHROMIUM_PATHor have it in PATH)
License
MIT