expect_page

Function expect_page 

Source
pub fn expect_page(page: &Page) -> PageAssertions<'_>
Expand description

Create assertions for a page.

§Example

use viewpoint_test::expect_page;

expect_page(&page).to_have_url("https://example.com").await?;
expect_page(&page).to_have_title("Example").await?;