From 1c6c7c14c90d1b21c2371885074f3d2d8ba3f5d8 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 31 Jan 2024 17:23:47 +0100 Subject: [PATCH] MOBILE-3947 behat: Fix tests for older versions --- .../block/timeline/tests/behat/basic_usage-311.feature | 6 +++--- src/addons/mod/quiz/tests/behat/basic_usage-311.feature | 9 +++------ .../features/grades/tests/behat/navigation-401.feature | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/addons/block/timeline/tests/behat/basic_usage-311.feature b/src/addons/block/timeline/tests/behat/basic_usage-311.feature index a9397b25e..a9bc5c2ad 100644 --- a/src/addons/block/timeline/tests/behat/basic_usage-311.feature +++ b/src/addons/block/timeline/tests/behat/basic_usage-311.feature @@ -57,7 +57,7 @@ Feature: Timeline block. But I should not find "Assignment 01" within "Timeline" "ion-card" in the app And I should not find "Course 3" within "Timeline" "ion-card" in the app - When I press "Next 30 days" in the app + When I press "Filter timeline by date" in the app And I press "Overdue" in the app Then I should find "Assignment 01" within "Timeline" "ion-card" in the app And I should find "Course 2" within "Timeline" "ion-card" in the app @@ -66,7 +66,7 @@ Feature: Timeline block. And I should not find "Course 1" within "Timeline" "ion-card" in the app And I should not find "Course 3" within "Timeline" "ion-card" in the app - When I press "Overdue" in the app + When I press "Filter timeline by date" in the app And I press "All" in the app Then I should find "Assignment 19" within "Timeline" "ion-card" in the app And I should find "Course 3" within "Timeline" "ion-card" in the app @@ -76,7 +76,7 @@ Feature: Timeline block. Then I should find "Assignment 21" within "Timeline" "ion-card" in the app And I should find "Assignment 25" within "Timeline" "ion-card" in the app - When I press "All" in the app + When I press "Filter timeline by date" in the app And I press "Next 7 days" in the app And I press "Sort by" in the app And I press "Sort by courses" in the app diff --git a/src/addons/mod/quiz/tests/behat/basic_usage-311.feature b/src/addons/mod/quiz/tests/behat/basic_usage-311.feature index 80087ff2d..6b4ea8cd7 100644 --- a/src/addons/mod/quiz/tests/behat/basic_usage-311.feature +++ b/src/addons/mod/quiz/tests/behat/basic_usage-311.feature @@ -158,12 +158,9 @@ Feature: Attempt a quiz in app And I press "Next" in the app And I press "True" in the app And I press "Next" in the app - And I press "Choose... , frog" in the app - And I press "amphibian" in the app - And I press "Choose... , newt" in the app - And I press "insect" in the app - And I press "Choose... , cat" in the app - And I press "mammal" in the app + And I set the field "frog" to "amphibian" in the app + And I set the field "newt" to "insect" in the app + And I set the field "cat" to "mammal" in the app And I press "Next" in the app Then I should find "Text of the eighth question" in the app diff --git a/src/core/features/grades/tests/behat/navigation-401.feature b/src/core/features/grades/tests/behat/navigation-401.feature index e7f2ceaf7..61ef0b016 100644 --- a/src/core/features/grades/tests/behat/navigation-401.feature +++ b/src/core/features/grades/tests/behat/navigation-401.feature @@ -89,7 +89,7 @@ Feature: Grades navigation # Course grades When I press "Participants" in the app And I press "Student first" in the app - And I press "Grades" in the app + And I press "Grades" near "Details" in the app Then I should find "GC C2.1" in the app And I should find "Weight" in the app And I should find "Contribution to course total" in the app