在我的主页小部件上,当用户点击系统后退按钮时,它会通过 WillPopScope 显示确认对话框小部件。我想测试这个对话框,但我不知道如何按测试文件上的后退按钮。
testing flutter flutter-test
flutter ×1
flutter-test ×1
testing ×1