how to write cypress e2e tests for supabase's magic link login authentication (react)? #7839
Replies: 2 comments 2 replies
-
I'm new to Cypress but running into this exact issue. So far I've found this article, which seems like it might do try trick: |
Beta Was this translation helpful? Give feedback.
-
Currently facing the same issue, I am running a local instance of supabase in Docker and magic links are sent to Inbucket email testing service that is running in parallel. I'm new to cypress and have not found a solution outside of getting the magic link url with the token and hardcoding it into the spec for the test to visit. |
Beta Was this translation helpful? Give feedback.
-
Anyone knows how to write cypress e2e tests for retrieving the magic link after keying in the email field?
I cant seem to go beyond the login page since I cant automate the authentication, as this requires going to the user's keyed-in email to retrieve the unique magic link
![Screenshot 2022-07-21 at 11 28 22 PM](https://user-images.githubusercontent.com/105587981/180253130-c898dfa1-62da-4610-98d1-5ac453486bd8.png)
.
Beta Was this translation helpful? Give feedback.
All reactions