Probably one of the best articles I was able to find about integration testing, thank you!
However, I had several issues, which are worth mentioning:
In the starter project the following fragment (copied from the article) won’t compile:
// This variable should name tempTitle as per acrticle
const Offset(-600, 0),
Note, this is not the case in the final project.
Both starter and final projects tests are failing to find the widget card to drag (so it can be removed). To fix this you have add
key: ValueKey(ideasList[index].title!) within the
Text widget inside the
home_screen.dart, line 156).
Maybe it is worth mentioning in the article, that ideally, unit tests shouldn’t rely on the order in which they are executed. This is not the case for integration testing (otherwise if you start the second test only it will fail, as the account doesn’t exist).
Excellent introduction to integration testing!
Thanks for your feedback. I’ve updated the projects so they should now compile with the latest version of Flutter as well as fixed the code in the starter and final projects.