Reputation: 401
In integration test ca i do the following?,
Is it possible to run integration test with apps having this kind of flow: app starts -> splash screen-> ad with close button -> amplify auth login screen -> home -> menu home buttons -> another screen so and so..?
Run integration test bypass login screen and do integration test to specific part of the app only
Upvotes: 1
Views: 841
Reputation: 91
setUp
of your integration tests, you can then "pretend" the user is already authenticated through the use of MockFirebaseAuth
(see firebase_auth_mocks). The idea is the same as in point 1; the firebase authentication service is being mocked, and will just provide the type of User
object that you want it to, which would probably be a successfully authenticated user in most cases.Edit: your app should be set up in such a way that it will first check whether or not the user is already authenticated. If so, just skip the login screen. This way, when the authentication service provides an already authenticated user, the login screen will be bypassed and you can continue testing the rest of your app without having to fill in credentials every single time...
Upvotes: 1