Merge pull request #76 from NoelDeMartin/MOBILE-3833

MOBILE-3833: Fix tests
main
Dani Palou 2022-03-14 16:15:48 +01:00 committed by GitHub
commit 03debebb06
3 changed files with 4 additions and 2 deletions

View File

@ -453,7 +453,7 @@ Feature: Test basic usage of one course in app
Then I should find "Course summary" in the app
And I should find "Course" in the app
When I press "Course" "ion-button" in the app
When I press "View course" "ion-button" in the app
Then the header should be "Course 1" in the app
And I should find "Choice course 1" in the app
And I should find "assignment" in the app

View File

@ -88,7 +88,7 @@ Feature: Test basic usage of courses in app
When I press "Course 4" in the app
Then I should find "Course 4" in the app
And the header should be "Course summary" in the app
And I should find "Course summary" in the app
When I press the back button in the app
And I set the field "Search" to "Course" in the app

View File

@ -811,6 +811,8 @@ class behat_app extends behat_base {
}
// Check that it worked as expected.
usleep(1000000);
$result = $this->evaluate_script("return window.behat.isSelected($locatorjson);");
switch ($result) {