Replies: 2 comments 1 reply
-
You can use a mock email service like 1secmail (or similar) and use their API to extract emails contents and go to the magic link. @fylyppo I believe you encountered this use case, could you share your learnings? |
Beta Was this translation helpful? Give feedback.
-
Hi, I don't get your authentication flow. |
Beta Was this translation helpful? Give feedback.
-
I'm developing a flutter application which interacts with a supabase backend for both API and Auth. The only authentication is via email, specifically by means of magic link.
The problem: I want to write some end-to-end test, and to do that I'm using patrol. The test built are saved on a public repo along with the codebase, in order to perform some github actions which run the tests on firebase.
Of course I cannot log into the app via the magic link: that would mean opening the web browser, having the email inbox set on the virtual device etc.
The possible solution: at patrol build time, set environment variables read by
String.fromEnvironment
in order to use user+password credentials login when testing.pros:
cons:
I don't know any other way to accomplish this, if not mocking all the supabase's calls. What could I do?
Beta Was this translation helpful? Give feedback.
All reactions