From 5a68dc1f16800abdb49b0a38f6edc274a3317e67 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 27 Jan 2022 11:04:26 +0100 Subject: [PATCH] MOBILE-3833 behat: Fix grades tests --- tests/behat/navigation_splitview.feature | 47 +++++------------------- 1 file changed, 9 insertions(+), 38 deletions(-) diff --git a/tests/behat/navigation_splitview.feature b/tests/behat/navigation_splitview.feature index 7efe86451..3b6e31359 100644 --- a/tests/behat/navigation_splitview.feature +++ b/tests/behat/navigation_splitview.feature @@ -37,20 +37,14 @@ Feature: It navigates properly in pages with a split-view component. # Open C1 course grades When I press "Course 1" in the app - Then the header should be "Grades" in the app + Then the header should be "Course 1" in the app And I should find "Grade category C1" in the app # Open C1 grade item When I press "Grade item C1" in the app - Then the header should be "Grade" in the app - And I should find "20" near "Range" in the app + Then I should find "20" near "Range" in the app And I should find "40" near "Range" in the app - # Go back to course grades - When I press the back button in the app - Then the header should be "Grades" in the app - And I should find "Grade category C1" in the app - # Go back to grades page When I press the back button in the app Then the header should be "Grades" in the app @@ -59,20 +53,14 @@ Feature: It navigates properly in pages with a split-view component. # Open C2 course grades When I press "Course 2" in the app - Then the header should be "Grades" in the app + Then the header should be "Course 2" in the app And I should find "Grade category C2" in the app # Open C2 grade item When I press "Grade item C2" in the app - Then the header should be "Grade" in the app - And I should find "60" near "Range" in the app + Then I should find "60" near "Range" in the app And I should find "80" near "Range" in the app - # Go back to course grades - When I press the back button in the app - Then the header should be "Grades" in the app - And I should find "Grade category C2" in the app - # Go back to grades page When I press the back button in the app Then the header should be "Grades" in the app @@ -82,7 +70,7 @@ Feature: It navigates properly in pages with a split-view component. # Go back to main page When I press the back button in the app Then I should find "Acceptance test site" in the app - And I should find "Account" in the app + And I should find "User account" in the app But I should not find "Back" in the app Scenario: Navigate in grades tab on tablet @@ -102,39 +90,22 @@ Feature: It navigates properly in pages with a split-view component. # Open C1 course grades When I press "Grade item C1" in the app - Then the header should be "Grades" in the app - And I should find "Grade category C1" in the app + Then I should find "Grade category C1" in the app And I should find "20" near "Range" in the app And I should find "40" near "Range" in the app - # Go back to grades page - When I press the back button in the app - Then the header should be "Grades" in the app - And I should find "Course 1" in the app - And I should find "Course 2" in the app - # Select C2 course When I press "Course 2" in the app - Then the header should be "Grades" in the app - And "Course 2" should be selected in the app + Then "Course 2" should be selected in the app And I should find "Grade category C2" in the app # Open C2 course grades When I press "Grade item C2" in the app - Then the header should be "Grades" in the app - And I should find "Grade category C2" in the app - And I should find "60" near "Range" in the app + Then I should find "60" near "Range" in the app And I should find "80" near "Range" in the app - # Go back to grades page - When I press the back button in the app - Then the header should be "Grades" in the app - And I should find "Course 1" in the app - And I should find "Course 2" in the app - And I should find "Back" in the app - # Go back to main page When I press the back button in the app Then I should find "Acceptance test site" in the app - And I should find "Account" in the app + And I should find "User account" in the app But I should not find "Back" in the app