diff --git a/src/tests/snapshots/linkblocks__tests__users__can_login-2.snap b/src/tests/snapshots/linkblocks__tests__users__can_login-2.snap new file mode 100644 index 0000000..857f02c --- /dev/null +++ b/src/tests/snapshots/linkblocks__tests__users__can_login-2.snap @@ -0,0 +1,82 @@ +--- +source: src/tests/users.rs +expression: index.dom.htmls() +--- + + + + + + + linkblocks + + + +
+
+ +
+

Welcome to linkblocks!

+
+ + + + + + +
+ + + +
+ + diff --git a/src/tests/users.rs b/src/tests/users.rs index 537f059..ad611bd 100644 --- a/src/tests/users.rs +++ b/src/tests/users.rs @@ -32,7 +32,14 @@ async fn can_login(pool: Pool) -> anyhow::Result<()> { let cookie = cookie.to_str()?.split_once(';').unwrap().0; // Check that we can access the index using the auth cookie - app.req().header(header::COOKIE, cookie).get("/").await; + let index = app + .req() + .header(header::COOKIE, cookie) + .get("/") + .await + .test_page() + .await; + insta::assert_snapshot!(index.dom.htmls()); Ok(()) }