From 2937f8f1f2de1e5354e6df8149f1d72bc520d0dd Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 29 Sep 2021 14:26:14 +0200 Subject: [PATCH] MOBILE-3833 behat: Fix changing sites --- mod/login/tests/behat/app_basic_usage.feature | 2 ++ tests/behat/navigation_deeplinks.feature | 1 + 2 files changed, 3 insertions(+) diff --git a/mod/login/tests/behat/app_basic_usage.feature b/mod/login/tests/behat/app_basic_usage.feature index 6709d8c76..a8b683aae 100755 --- a/mod/login/tests/behat/app_basic_usage.feature +++ b/mod/login/tests/behat/app_basic_usage.feature @@ -35,6 +35,7 @@ Feature: Test basic usage of login in app And I log in as "student1" And I press the main menu button in the app And I press "Change site" in the app + And I wait the app to restart And I press "Add" in the app And I set the field "Your site" to "Wrong Site Address" in the app And I press enter in the app @@ -46,6 +47,7 @@ Feature: Test basic usage of login in app And I log in as "student1" And I press the main menu button in the app And I press "Change site" in the app + And I wait the app to restart Then I should find "Acceptance test site" in the app And I press "Delete" in the app And I press "Delete" near "Acceptance test site" in the app diff --git a/tests/behat/navigation_deeplinks.feature b/tests/behat/navigation_deeplinks.feature index 051ae52fc..1c1053ce2 100644 --- a/tests/behat/navigation_deeplinks.feature +++ b/tests/behat/navigation_deeplinks.feature @@ -27,6 +27,7 @@ Feature: It navigates properly using deep links. And I log in as "student2" And I press the main menu button in the app And I press "Log out" in the app + And I wait the app to restart And I press "Add" in the app And I set the field "Your site" to "$WWWROOT" in the app And I press "Connect to your site" in the app