Open dturner opened 4 years ago
Hey Don - thanks for the report. I think I figured out what's happening. If Sunflower is already installed on the emulator and if a plant exists in the garden, then the tests fails (as the "Add Plant" button is hidden). If the garden is empty or the app isn't installed, the test will pass.
Can you confirm that this is what you're seeing, too?
Hey Tiem - yep, that's it! :)
Looks like you need to instantiate GardenFragment
with an empty database, rather than using the same one used by the app.
Interested to hear your thoughts on how to do this as I'm facing a similar testing scenario in another app.
I get the following error when running
clickAddPlant_OpensPlantList
on the API 29 emulator: