mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +08:00
Flutter Driver Test: Wait for element to be visible before tapping
This commit is contained in:
@ -19,6 +19,8 @@ class GitApp extends StatelessWidget {
|
||||
),
|
||||
body: Column(
|
||||
children: _buildGitButtons(),
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -24,6 +24,7 @@ void main() {
|
||||
});
|
||||
|
||||
test('Anonymous GitClone works', () async {
|
||||
await driver.waitFor(buttonFinder);
|
||||
await driver.tap(buttonFinder);
|
||||
await driver.waitFor(
|
||||
find.text("Success"),
|
||||
|
Reference in New Issue
Block a user