mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +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(
|
body: Column(
|
||||||
children: _buildGitButtons(),
|
children: _buildGitButtons(),
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -24,6 +24,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Anonymous GitClone works', () async {
|
test('Anonymous GitClone works', () async {
|
||||||
|
await driver.waitFor(buttonFinder);
|
||||||
await driver.tap(buttonFinder);
|
await driver.tap(buttonFinder);
|
||||||
await driver.waitFor(
|
await driver.waitFor(
|
||||||
find.text("Success"),
|
find.text("Success"),
|
||||||
|
Reference in New Issue
Block a user