From b79dbd2ddad3c03a8f51522b73d2cbd48a768a1b Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 22 Sep 2021 14:10:59 +0200 Subject: [PATCH] MDL-72116 behat: Fix tests using removed blocks --- .../tests/behat/app_basic_usage.feature | 16 ++++++------ .../tests/behat/app_basic_usage.feature | 24 ++++++++--------- .../tests/behat/app_basic_usage.feature | 14 +++++----- .../tests/behat/app_course_completion.feature | 2 +- .../tests/behat/app_basic_usage.feature | 8 +++--- .../tests/behat/app_basic_usage.feature | 26 +++++++++---------- .../tests/behat/app_basic_usage.feature | 10 +++---- 7 files changed, 50 insertions(+), 50 deletions(-) diff --git a/mod/assignment/tests/behat/app_basic_usage.feature b/mod/assignment/tests/behat/app_basic_usage.feature index ecd892b82..722ef7cec 100755 --- a/mod/assignment/tests/behat/app_basic_usage.feature +++ b/mod/assignment/tests/behat/app_basic_usage.feature @@ -23,7 +23,7 @@ Feature: Test basic usage of assignment activity in app # Create, edit and submit as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app Then the header should be "assignment1" in the app And I should find "Test assignment description1" in the app @@ -51,7 +51,7 @@ Feature: Test basic usage of assignment activity in app # View as a teacher When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app Then the header should be "assignment1" in the app @@ -67,7 +67,7 @@ Feature: Test basic usage of assignment activity in app # Submit first attempt as a student Given I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app And I press "Add submission" in the app And I set the field "Online text submissions" to "Submission test 1st attempt" in the app @@ -78,7 +78,7 @@ Feature: Test basic usage of assignment activity in app # Allow more attempts as a teacher When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app And I press "Participants" in the app And I press "Student student" near "assignment1" in the app @@ -91,7 +91,7 @@ Feature: Test basic usage of assignment activity in app # Submit second attempt as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app Then I should find "Reopened" in the app And I should find "2 out of Unlimited" in the app @@ -111,7 +111,7 @@ Feature: Test basic usage of assignment activity in app # View second attempt as a teacher When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app And I press "Participants" in the app And I press "Student student" near "assignment1" in the app @@ -121,7 +121,7 @@ Feature: Test basic usage of assignment activity in app Scenario: Add submission offline (online text) & Submit for grading offline & Sync submissions When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app And I press "Add submission" in the app And I switch offline mode to "true" @@ -142,7 +142,7 @@ Feature: Test basic usage of assignment activity in app Scenario: Edit an offline submission before synchronising it When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "assignment1" in the app And I press "Add submission" in the app And I switch offline mode to "true" diff --git a/mod/comments/tests/behat/app_basic_usage.feature b/mod/comments/tests/behat/app_basic_usage.feature index 2bc874f98..b8036aa17 100755 --- a/mod/comments/tests/behat/app_basic_usage.feature +++ b/mod/comments/tests/behat/app_basic_usage.feature @@ -28,7 +28,7 @@ Feature: Test basic usage of comments in app # Create database entry and comment as a teacher Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Data" in the app And I press "Display options" in the app And I press "Open in browser" in the app @@ -41,7 +41,7 @@ Feature: Test basic usage of comments in app And I close the browser tab opened by the app When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Data" in the app And I press "add" in the app And I set the field "Test field name" to "Test" in the app @@ -60,7 +60,7 @@ Feature: Test basic usage of comments in app # Create and delete comments as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Data" in the app And I press "More" in the app And I press "Comments (1)" in the app @@ -87,7 +87,7 @@ Feature: Test basic usage of comments in app Scenario: Add comments offline & Delete comments offline & Sync comments (database) Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Data" in the app And I press "Display options" in the app And I press "Open in browser" in the app @@ -100,7 +100,7 @@ Feature: Test basic usage of comments in app And I close the browser tab opened by the app When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Data" in the app And I press "add" in the app And I set the field "Test field name" to "Test" in the app @@ -150,7 +150,7 @@ Feature: Test basic usage of comments in app # Create glossary entry and comment as a teacher When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -169,7 +169,7 @@ Feature: Test basic usage of comments in app # Create and delete comments as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "potato" in the app And I press "Comments (1)" in the app @@ -196,7 +196,7 @@ Feature: Test basic usage of comments in app Scenario: Add comments offline & Delete comments offline & Sync comments (glossary) When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -247,7 +247,7 @@ Feature: Test basic usage of comments in app # Create blog as a teacher Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "menu" in the app And I press "Website" in the app And I switch to the browser tab opened by the app @@ -268,7 +268,7 @@ Feature: Test basic usage of comments in app # Create and delete comments as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "menu" in the app And I press "Site blog" in the app Then I should see "Blog test" @@ -297,7 +297,7 @@ Feature: Test basic usage of comments in app # Create blog as a teacher Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "menu" in the app And I press "Website" in the app And I switch to the browser tab opened by the app @@ -318,7 +318,7 @@ Feature: Test basic usage of comments in app # Create and delete comments as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "menu" in the app And I press "Site blog" in the app Then I should see "Blog test" diff --git a/mod/course/tests/behat/app_basic_usage.feature b/mod/course/tests/behat/app_basic_usage.feature index e252e7943..249543aa4 100755 --- a/mod/course/tests/behat/app_basic_usage.feature +++ b/mod/course/tests/behat/app_basic_usage.feature @@ -74,7 +74,7 @@ Feature: Test basic usage of one course in app Scenario: View course contents When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" 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 @@ -151,7 +151,7 @@ Feature: Test basic usage of one course in app Scenario: View section contents When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" 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 @@ -330,7 +330,7 @@ Feature: Test basic usage of one course in app Scenario: Navigation between sections using the bottom arrows When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" 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 @@ -409,7 +409,7 @@ Feature: Test basic usage of one course in app Scenario: Self enrol Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Display options" in the app And I press "Course summary" in the app And I press "Open in browser" in the app @@ -449,7 +449,7 @@ Feature: Test basic usage of one course in app Scenario: Guest access Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Display options" in the app And I press "Course summary" in the app And I press "Open in browser" in the app @@ -488,7 +488,7 @@ Feature: Test basic usage of one course in app Scenario: View blocks below/beside contents also when All sections selected Given I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Display options" in the app And I press "Course summary" in the app And I press "Open in browser" in the app @@ -510,7 +510,7 @@ Feature: Test basic usage of one course in app And I close the browser tab opened by the app When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" 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 diff --git a/mod/course/tests/behat/app_course_completion.feature b/mod/course/tests/behat/app_course_completion.feature index c8824dee8..129f56c79 100644 --- a/mod/course/tests/behat/app_course_completion.feature +++ b/mod/course/tests/behat/app_course_completion.feature @@ -22,7 +22,7 @@ Feature: Check course completion feature. | forum | Second forum | C1 | forum2 | 1 | 0 | When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app # Set activities as completed. And I should find "0%" in the app And I press "Mark First forum as done" in the app diff --git a/mod/courses/tests/behat/app_basic_usage.feature b/mod/courses/tests/behat/app_basic_usage.feature index d70c3a6ab..1f931143e 100755 --- a/mod/courses/tests/behat/app_basic_usage.feature +++ b/mod/courses/tests/behat/app_basic_usage.feature @@ -60,7 +60,7 @@ Feature: Test basic usage of courses in app And I should find "Course 2" in the app And I should find "Course 3" in the app - When I press "Course 1" near "Recently accessed courses" in the app + When I press "Course 1" near "Course overview" in the app Then I should find "Choice course 1" in the app And the header should be "Course 1" in the app @@ -70,12 +70,12 @@ Feature: Test basic usage of courses in app When I press the back button in the app And I press the back button in the app - And I press "Course 2" near "Recently accessed courses" in the app + And I press "Course 2" near "Course overview" in the app Then I should find "Choice course 2" in the app And the header should be "Course 2" in the app When I press the back button in the app - And I press "Course 3" near "Recently accessed courses" in the app + And I press "Course 3" near "Course overview" in the app Then I should find "Choice course 3" in the app And the header should be "Course 3" in the app @@ -106,7 +106,7 @@ Feature: Test basic usage of courses in app And I log in as "teacher1" Then I should find "Timeline" in the app - Given I press "Course 1" near "Recently accessed courses" in the app + Given I press "Course 1" near "Course overview" in the app And I press "assignment" in the app And I press "Display options" in the app And I press "Open in browser" in the app diff --git a/mod/glossary/tests/behat/app_basic_usage.feature b/mod/glossary/tests/behat/app_basic_usage.feature index db323a308..169345a26 100755 --- a/mod/glossary/tests/behat/app_basic_usage.feature +++ b/mod/glossary/tests/behat/app_basic_usage.feature @@ -29,7 +29,7 @@ Feature: Test basic usage of glossary in app Scenario: View a glossary and its terms When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -56,7 +56,7 @@ Feature: Test basic usage of glossary in app Scenario: Change filters (include search) When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -94,7 +94,7 @@ Feature: Test basic usage of glossary in app When the "glossary" filter is "on" And I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -139,7 +139,7 @@ Feature: Test basic usage of glossary in app # Create entries as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -164,7 +164,7 @@ Feature: Test basic usage of glossary in app # Write comments as a teacher When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "mountain" in the app Then I should see "Comments (0)" @@ -186,7 +186,7 @@ Feature: Test basic usage of glossary in app # View comments as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "mountain" in the app Then I should see "Comments (2)" @@ -199,7 +199,7 @@ Feature: Test basic usage of glossary in app Scenario: Prefetch When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -222,7 +222,7 @@ Feature: Test basic usage of glossary in app And I press "Download" in the app And I press the back button in the app And I press the back button in the app - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I switch offline mode to "true" And I press "Test glossary" in the app Then the header should be "Test glossary" in the app @@ -240,7 +240,7 @@ Feature: Test basic usage of glossary in app Scenario: Sync When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I switch offline mode to "true" And I press "close" in the app @@ -282,7 +282,7 @@ Feature: Test basic usage of glossary in app # Create entries as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "close" in the app And I set the field "Concept" to "potato" in the app @@ -304,7 +304,7 @@ Feature: Test basic usage of glossary in app # Rate entries as teacher1 When I enter the app And I log in as "teacher1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "mountain" in the app Then I should see "Average of ratings: -" @@ -316,7 +316,7 @@ Feature: Test basic usage of glossary in app # Rate entries as teacher2 When I enter the app And I log in as "teacher2" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "mountain" in the app And I switch offline mode to "true" @@ -337,7 +337,7 @@ Feature: Test basic usage of glossary in app # View ratings as a student When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Test glossary" in the app And I press "mountain" in the app Then the header should be "mountain" in the app diff --git a/mod/messages/tests/behat/app_basic_usage.feature b/mod/messages/tests/behat/app_basic_usage.feature index 8aebbbae3..a03944489 100755 --- a/mod/messages/tests/behat/app_basic_usage.feature +++ b/mod/messages/tests/behat/app_basic_usage.feature @@ -292,7 +292,7 @@ Feature: Test basic usage of messages in app Scenario: User blocking feature When I enter the app And I log in as "student2" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Participants" in the app And I press "Student1 student1" in the app And I press "Message" in the app @@ -303,7 +303,7 @@ Feature: Test basic usage of messages in app When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Participants" in the app And I press "Student2 student2" in the app And I press "Message" in the app @@ -311,7 +311,7 @@ Feature: Test basic usage of messages in app When I enter the app And I log in as "student2" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Participants" in the app And I press "Student1 student1" in the app And I press "Message" in the app @@ -325,7 +325,7 @@ Feature: Test basic usage of messages in app When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Participants" in the app And I press "Student2 student2" in the app And I press "Message" in the app @@ -337,7 +337,7 @@ Feature: Test basic usage of messages in app Scenario: Mute Unmute conversations When I enter the app And I log in as "student1" - And I press "Course 1" near "Recently accessed courses" in the app + And I press "Course 1" near "Course overview" in the app And I press "Participants" in the app And I press "Student2 student2" in the app And I press "Message" in the app