Android Espresso UI Test with Firebase Test lab


Emulator fails to see the view second time while testing with Espresso.
First Test the app launch and make normal login click. Sign in and complete the test.
Second Test the app launch and cant see the entry screen login button.
giving exception:

androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with :id/login_button

Whats the reason ?