From 73e4d28500350d16fcca6e04cf861583a1faf86a Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Wed, 10 Apr 2024 10:34:44 +0800 Subject: [PATCH] test: add magic link test --- tests/user/sign_in.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/user/sign_in.rs b/tests/user/sign_in.rs index 0d859409..59d2591c 100644 --- a/tests/user/sign_in.rs +++ b/tests/user/sign_in.rs @@ -101,3 +101,11 @@ async fn sign_in_with_url() { let is_new = c.sign_in_with_url(&sign_in_url).await.unwrap(); assert!(is_new); } + +#[tokio::test] +async fn sign_in_with_magic_link() { + let c = localhost_client(); + let email = generate_unique_email(); + let resp = c.sign_in_with_magic_link(&email, None).await; + assert!(resp.is_ok()); +}