Using the flutter UI tester a button is being pressed twice when explictly stated not to
So I’m trying to create some UI test cases within Flutter and I am having a lot of difficulty with it at the moment. The exact moment it is failing is when it presses the add button, a save window pops up. Once the save window is completed the UI tester should wait for the next screen and then press okay but it seems that it immediately presses the ‘Add’ button a second time which causes it to fail as the user has already been added by the first click. No matter how many waits or anything I put in it keeps immediately pressing the ‘Add’ button whenever it can. The code below is the core area of the issue, thanks so much!
Using the flutter UI tester a button is being pressed twice when explictly stated not to
So I’m trying to create some UI test cases within Flutter and I am having a lot of difficulty with it at the moment. The exact moment it is failing is when it presses the add button, a save window pops up. Once the save window is completed the UI tester should wait for the next screen and then press okay but it seems that it immediately presses the ‘Add’ button a second time which causes it to fail as the user has already been added by the first click. No matter how many waits or anything I put in it keeps immediately pressing the ‘Add’ button whenever it can. The code below is the core area of the issue, thanks so much!