Skip to content

Commit

Permalink
Add a delay for page-load in e2e tests (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpryan authored Sep 19, 2022
1 parent 1ca1390 commit 455943c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/playground_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ void main() async {
uri: Uri.parse('http://localhost:4444/wd/hub/'),
desired: Capabilities.chrome);

await Future.delayed(Duration(milliseconds: 2000));

// Go to your page
await driver.get('http://localhost:8000/');
await waitForPageToStabilize();
Expand Down

0 comments on commit 455943c

Please sign in to comment.