1) Now all tests run successfully one after another (right-click on the androidTest folder and run it).
This was done by integrating he newly added option "delete profile" into the tests. Now, as each test finishes its assertions successfully, it goes to the profile page and deletes the account. Thus, the application transfers to the sign-in page and the next test starts from there successfully.
2) To correspond with latest and future updates (which cause page layout changes), all tests view actions were updated (deleted childAtPosition check), and code reformatted.
3) Added EspressoIdlingResource counting to ChoosingActivity to deal with progress bar loading (some tests were getting stuck on its loading).
1) Now all tests run successfully one after another (right-click on the androidTest folder and run it). This was done by integrating he newly added option "delete profile" into the tests. Now, as each test finishes its assertions successfully, it goes to the profile page and deletes the account. Thus, the application transfers to the sign-in page and the next test starts from there successfully. 2) To correspond with latest and future updates (which cause page layout changes), all tests view actions were updated (deleted childAtPosition check), and code reformatted. 3) Added EspressoIdlingResource counting to ChoosingActivity to deal with progress bar loading (some tests were getting stuck on its loading).