diff --git a/backup/util/ui/tests/behat/import_course.feature b/backup/util/ui/tests/behat/import_course.feature index f9c0d0ea399..e2e5719d583 100644 --- a/backup/util/ui/tests/behat/import_course.feature +++ b/backup/util/ui/tests/behat/import_course.feature @@ -20,9 +20,9 @@ Feature: Import course's contents into another course Scenario: Import course's contents to another course Given I log in as "teacher1" And the following "activities" exist: - | activity | name | intro | course | idnumber | section | - | data | Test database name | Test database description | C1 | database1 | 2 | - | forum | Test forum name | Test forum name description | C1 | forum1 | 1 | + | activity | name | course | idnumber | + | data | Test database name | C1 | database1 | + | forum | Test forum name | C1 | forum1 | And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | comments | Course | C1 | course-view-* | side-pre | diff --git a/blocks/activity_results/tests/behat/addunsupportedactivity.feature b/blocks/activity_results/tests/behat/addunsupportedactivity.feature index 3bc3f99e084..8fcbe3c6d52 100644 --- a/blocks/activity_results/tests/behat/addunsupportedactivity.feature +++ b/blocks/activity_results/tests/behat/addunsupportedactivity.feature @@ -32,8 +32,7 @@ Feature: The activity results block doesn't display student scores for unsupport | id_config_gradeformat | Percentages | | id_config_nameformat | Display full names | And I press "Save changes" - When I follow "Test assignment" - And I navigate to "Edit settings" in current page administration + When I am on the "Test assignment" "assign activity editing" page And I set the following fields to these values: | id_grade_modgrade_type | None | And I press "Save and return to course" diff --git a/blocks/activity_results/tests/behat/defaultsettings.feature b/blocks/activity_results/tests/behat/defaultsettings.feature index 8418c838882..9ad8bfb65a4 100644 --- a/blocks/activity_results/tests/behat/defaultsettings.feature +++ b/blocks/activity_results/tests/behat/defaultsettings.feature @@ -21,8 +21,6 @@ Feature: The activity results block can have administrator set defaults | course | C1 | | idnumber | 0001 | | name | Test assignment | - | intro | Offline text | - | section | 1 | | assignsubmission_file_enabled | 0 | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on diff --git a/blocks/badges/tests/behat/block_badges_frontpage.feature b/blocks/badges/tests/behat/block_badges_frontpage.feature index 90ca24177bc..b3d1b59987d 100644 --- a/blocks/badges/tests/behat/block_badges_frontpage.feature +++ b/blocks/badges/tests/behat/block_badges_frontpage.feature @@ -17,8 +17,7 @@ Feature: Enable Block Badges on the frontpage and view awarded badges And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | badges | System | 1 | site-index | side-pre | - And I log in as "teacher1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as teacher1 # Issue badge 1 of 2 And I navigate to "Badges > Add a new badge" in current page administration And I set the following fields to these values: @@ -35,7 +34,5 @@ Feature: Enable Block Badges on the frontpage and view awarded badges And I press "Award badge" And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)" And I press "Award badge" - And I log out - When I log in as "teacher1" - And I am on site homepage + When I am on site homepage Then I should see "Badge 1" in the "Latest badges" "block" diff --git a/blocks/blog_menu/tests/behat/block_blog_menu_activity.feature b/blocks/blog_menu/tests/behat/block_blog_menu_activity.feature index 5c3ec0b44ce..00aaf132cbc 100644 --- a/blocks/blog_menu/tests/behat/block_blog_menu_activity.feature +++ b/blocks/blog_menu/tests/behat/block_blog_menu_activity.feature @@ -31,9 +31,7 @@ Feature: Enable Block blog menu in an activity | blog_menu | Activity module | 0001 | mod-assign-view | side-pre | Scenario: Students use the blog menu block to post blogs - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add a new entry" When I set the following fields to these values: | Entry title | S1 First Blog | @@ -41,16 +39,13 @@ Feature: Enable Block blog menu in an activity And I press "Save changes" Then I should see "S1 First Blog" And I should see "This is my awesome blog!" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page And I follow "Blog entries" And I should see "S1 First Blog" And I should see "This is my awesome blog!" Scenario: Students use the blog menu block to view their blogs about the activity - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -59,10 +54,7 @@ Feature: Enable Block blog menu in an activity And I should see "S1 First Blog" And I should see "This is my awesome blog about this Assignment!" And I should see "Associated Assignment: Test assignment 1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -71,8 +63,7 @@ Feature: Enable Block blog menu in an activity And I should see "S2 Second Blog" And I should see "My unrelated blog!" And I should not see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S2 First Blog | @@ -81,17 +72,14 @@ Feature: Enable Block blog menu in an activity And I should see "S2 First Blog" And I should see "My course blog is better!" And I should see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page When I follow "View my entries about this Assignment" Then I should see "S2 First Blog" And I should not see "S2 Second Blog" And I should not see "S1 First Blog" Scenario: Students use the blog menu block to view all blogs about the assignment - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -100,10 +88,7 @@ Feature: Enable Block blog menu in an activity And I should see "S1 First Blog" And I should see "This is my awesome blog about this Assignment!" And I should see "Associated Assignment: Test assignment 1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -112,8 +97,7 @@ Feature: Enable Block blog menu in an activity And I should see "S2 Second Blog" And I should see "My unrelated blog!" And I should not see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S2 First Blog | @@ -122,17 +106,14 @@ Feature: Enable Block blog menu in an activity And I should see "S2 First Blog" And I should see "My course blog is better!" And I should see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page When I follow "View all entries about this Assignment" Then I should see "S1 First Blog" And I should see "S2 First Blog" And I should not see "S2 Second Blog" Scenario: Students use the blog menu block to view all their blog entries - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -141,10 +122,7 @@ Feature: Enable Block blog menu in an activity And I should see "S1 First Blog" And I should see "This is my awesome blog about this Assignment!" And I should see "Associated Assignment: Test assignment 1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -153,8 +131,7 @@ Feature: Enable Block blog menu in an activity And I should see "S2 Second Blog" And I should see "My unrelated blog!" And I should not see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S2 First Blog | @@ -163,17 +140,14 @@ Feature: Enable Block blog menu in an activity And I should see "S2 First Blog" And I should see "My course blog is better!" And I should see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page When I follow "Blog entries" Then I should see "S2 First Blog" And I should see "S2 Second Blog" And I should not see "S1 First Blog" Scenario: Teacher searches for student blogs - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -182,10 +156,7 @@ Feature: Enable Block blog menu in an activity And I should see "S1 First Blog" And I should see "This is my awesome blog about this Assignment!" And I should see "Associated Assignment: Test assignment 1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -194,8 +165,7 @@ Feature: Enable Block blog menu in an activity And I should see "S2 Second Blog" And I should see "My unrelated blog!" And I should not see "Associated Assignment: Test assignment 1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + And I am on the "Test assignment 1" "assign activity" page And I follow "Add an entry about this Assignment" And I set the following fields to these values: | Entry title | S2 First Blog | @@ -204,10 +174,7 @@ Feature: Enable Block blog menu in an activity And I should see "S2 First Blog" And I should see "My course blog is better!" And I should see "Associated Assignment: Test assignment 1" - And I log out - When I log in as "teacher1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + When I am on the "Test assignment 1" "assign activity" page logged in as teacher1 And I set the field "Search" to "First" And I press "Search" Then I should see "S1 First Blog" diff --git a/blocks/blog_menu/tests/behat/block_blog_menu_course.feature b/blocks/blog_menu/tests/behat/block_blog_menu_course.feature index 534ba358917..ba9c1fd2a07 100644 --- a/blocks/blog_menu/tests/behat/block_blog_menu_course.feature +++ b/blocks/blog_menu/tests/behat/block_blog_menu_course.feature @@ -23,8 +23,7 @@ Feature: Students can use block blog menu in a course | blog_menu | Course | C1 | course-view-* | side-pre | Scenario: Students use the blog menu block to post blogs - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add a new entry" When I set the following fields to these values: | Entry title | S1 First Blog | @@ -38,8 +37,7 @@ Feature: Students can use block blog menu in a course And I should see "This is my awesome blog!" Scenario: Students use the blog menu block to view their blogs about the course - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add an entry about this course" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -48,9 +46,7 @@ Feature: Students can use block blog menu in a course And I should see "S1 First Blog" And I should see "This is my awesome blog about this course!" And I should see "Associated Course: C1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -75,8 +71,7 @@ Feature: Students can use block blog menu in a course And I should not see "S1 First Blog" Scenario: Students use the blog menu block to view all blogs about the course - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add an entry about this course" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -85,9 +80,7 @@ Feature: Students can use block blog menu in a course And I should see "S1 First Blog" And I should see "This is my awesome blog about this course!" And I should see "Associated Course: C1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -112,8 +105,7 @@ Feature: Students can use block blog menu in a course And I should not see "S2 Second Blog" Scenario: Students use the blog menu block to view all their blog entries - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add an entry about this course" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -122,9 +114,7 @@ Feature: Students can use block blog menu in a course And I should see "S1 First Blog" And I should see "This is my awesome blog about this course!" And I should see "Associated Course: C1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -149,8 +139,7 @@ Feature: Students can use block blog menu in a course And I should not see "S1 First Blog" Scenario: Teacher searches for student blogs - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add an entry about this course" And I set the following fields to these values: | Entry title | S1 First Blog | @@ -159,9 +148,7 @@ Feature: Students can use block blog menu in a course And I should see "S1 First Blog" And I should see "This is my awesome blog about this course!" And I should see "Associated Course: C1" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student2 And I follow "Add a new entry" And I set the following fields to these values: | Entry title | S2 Second Blog | @@ -179,9 +166,7 @@ Feature: Students can use block blog menu in a course And I should see "S2 First Blog" And I should see "My course blog is better!" And I should see "Associated Course: C1" - And I log out - When I log in as "teacher1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as teacher1 And I set the field "Search" to "First" And I press "Search" Then I should see "S1 First Blog" diff --git a/blocks/blog_recent/tests/behat/block_blog_recent_activity.feature b/blocks/blog_recent/tests/behat/block_blog_recent_activity.feature index 97f5fac1016..f2a80385171 100644 --- a/blocks/blog_recent/tests/behat/block_blog_recent_activity.feature +++ b/blocks/blog_recent/tests/behat/block_blog_recent_activity.feature @@ -32,9 +32,7 @@ Feature: Students can use the recent blog entries block to view recent entries o | blog_recent | Activity module | 0001 | mod-assign-view | side-pre | Scenario: Students use the recent blog entries block to view blogs - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add an entry about this Assignment" When I set the following fields to these values: | Entry title | S1 First Blog | @@ -48,9 +46,7 @@ Feature: Students can use the recent blog entries block to view recent entries o And I should see "This is my awesome blog!" Scenario: Students only see a few entries in the recent blog entries block - Given I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test assignment 1" + Given I am on the "Test assignment 1" "assign activity" page logged in as student1 And I follow "Add an entry about this Assignment" # Blog 1 of 5 And I set the following fields to these values: diff --git a/blocks/blog_recent/tests/behat/block_blog_recent_course.feature b/blocks/blog_recent/tests/behat/block_blog_recent_course.feature index 6962d170adc..85ffe10854d 100644 --- a/blocks/blog_recent/tests/behat/block_blog_recent_course.feature +++ b/blocks/blog_recent/tests/behat/block_blog_recent_course.feature @@ -24,8 +24,7 @@ Feature: Students can use the recent blog entries block to view recent entries o And the "multilang" filter applies to "content and headings" Scenario: Students use the recent blog entries block to view blogs - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add an entry about this course" When I set the following fields to these values: | Entry title | S1 First Blog RUSSIANENGLISH | @@ -39,8 +38,7 @@ Feature: Students can use the recent blog entries block to view recent entries o And I should see "This is my awesome blog!" Scenario: Students only see a few entries in the recent blog entries block - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 And I follow "Add an entry about this course" # Blog 1 of 5 And I set the following fields to these values: diff --git a/blocks/calendar_month/tests/behat/block_calendar_month.feature b/blocks/calendar_month/tests/behat/block_calendar_month.feature index 9feff486718..547637a4984 100644 --- a/blocks/calendar_month/tests/behat/block_calendar_month.feature +++ b/blocks/calendar_month/tests/behat/block_calendar_month.feature @@ -128,9 +128,7 @@ Feature: Enable the calendar block in a course and test it's functionality | user | group | | student1 | G1 | | student2 | G2 | - When I log in as "teacher1" - And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + When I am on the "Course 1" "course editing" page logged in as teacher1 And I set the following fields to these values: | id_groupmode | Separate groups | | id_groupmodeforce | Yes | @@ -145,14 +143,10 @@ Feature: Enable the calendar block in a course and test it's functionality And I set the following fields to these values: | Group | Group 1 | And I press "Save" - And I log out - Then I log in as "student1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student1 And I hover over today in the calendar - And I should see "Group Event" - And I log out - And I log in as "student2" - And I am on "Course 1" course homepage + Then I should see "Group Event" + And I am on the "Course 1" course page logged in as student2 And I hover over today in the calendar And I should not see "Group Event" diff --git a/blocks/comments/tests/behat/add_comment.feature b/blocks/comments/tests/behat/add_comment.feature index 9c99c6b9ab2..281035f085d 100644 --- a/blocks/comments/tests/behat/add_comment.feature +++ b/blocks/comments/tests/behat/add_comment.feature @@ -19,8 +19,7 @@ Feature: Add a comment to the comments block And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | comments | Course | C1 | course-view-* | side-pre | - And I log in as "student1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student1 @javascript Scenario: Add a comment with Javascript enabled diff --git a/blocks/comments/tests/behat/block_comment_activity.feature b/blocks/comments/tests/behat/block_comment_activity.feature index 95ee8277352..49c6dcbf37b 100644 --- a/blocks/comments/tests/behat/block_comment_activity.feature +++ b/blocks/comments/tests/behat/block_comment_activity.feature @@ -22,14 +22,9 @@ Feature: Enable Block comments on an activity page and view comments And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | comments | Activity module | page1 | mod-page-* | side-pre | - And I log in as "teacher1" - And I am on "Course 1" course homepage with editing mode on - And I follow "Test page name" + And I am on the "Test page name" "page activity" page logged in as teacher1 And I follow "Show comments" And I add "I'm a comment from the teacher" comment to comments block - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage - And I follow "Test page name" + When I am on the "Test page name" "page activity" page logged in as student1 And I follow "Show comments" Then I should see "I'm a comment from the teacher" diff --git a/blocks/comments/tests/behat/block_comment_course.feature b/blocks/comments/tests/behat/block_comment_course.feature index d23809b7eaa..f4cfe01156e 100644 --- a/blocks/comments/tests/behat/block_comment_course.feature +++ b/blocks/comments/tests/behat/block_comment_course.feature @@ -19,12 +19,9 @@ Feature: Enable Block comments on a course page and view comments And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | comments | Course | C1 | course-view-* | side-pre | - And I log in as "teacher1" - And I am on "Course 1" course homepage with editing mode on + And I am on the "Course 1" course page logged in as teacher1 And I follow "Show comments" And I add "I'm a comment from the teacher" comment to comments block - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I follow "Show comments" Then I should see "I'm a comment from the teacher" diff --git a/blocks/comments/tests/behat/delete_comment.feature b/blocks/comments/tests/behat/delete_comment.feature index 29288e7449e..c3a86f325cd 100644 --- a/blocks/comments/tests/behat/delete_comment.feature +++ b/blocks/comments/tests/behat/delete_comment.feature @@ -20,12 +20,9 @@ Feature: Delete comment block messages And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | comments | Course | C1 | course-view-* | side-pre | - And I log in as "student1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student1 And I add "Comment from student1" comment to comments block - And I log out - And I log in as "teacher1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as teacher1 And I add "Comment from teacher1" comment to comments block When I delete "Comment from student1" comment from comments block Then I should not see "Comment from student1" diff --git a/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature b/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature index a015757f582..1d1be33ac3c 100644 --- a/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature +++ b/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature @@ -23,21 +23,16 @@ Feature: Enable Block Completion in a course using manual completion by others | completionstatus | Course | C1 | course-view-* | side-pre | Scenario: Add the block to a the course and mark a student complete. - Given I log in as "teacher1" - And I am on "Course 1" course homepage with editing mode on + Given I am on the "Course 1" course page logged in as teacher1 And I navigate to "Course completion" in current page administration And I expand all fieldsets And I set the following fields to these values: | Teacher | 1 | And I press "Save changes" - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I should see "Status: Not yet started" in the "Course completion status" "block" And I should see "No" in the "Teacher" "table_row" - And I log out - And I log in as "teacher1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as teacher1 And I navigate to "Reports > Course completion" in current page administration And I follow "Click to mark user complete" # Running completion task just after clicking sometimes fail, as record @@ -45,17 +40,14 @@ Feature: Enable Block Completion in a course using manual completion by others And I wait "1" seconds And I run the scheduled task "core\task\completion_regular_task" And I am on site homepage - And I log out - And I log in as "student1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student1 Then I should see "Status: Complete" in the "Course completion status" "block" And I should see "Yes" in the "Teacher" "table_row" And I follow "More details" And I should see "Yes" in the "Marked complete by Teacher" "table_row" Scenario: Add the block to a the course and require multiple roles to mark a student complete. - Given I log in as "teacher1" - And I am on "Course 1" course homepage with editing mode on + Given I am on the "Course 1" course page logged in as teacher1 And I navigate to "Course completion" in current page administration And I expand all fieldsets And I set the following fields to these values: @@ -63,29 +55,21 @@ Feature: Enable Block Completion in a course using manual completion by others | Non-editing teacher | 1 | | id_role_aggregation | ALL selected roles to mark when the condition is met | And I press "Save changes" - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I should see "Status: Not yet started" in the "Course completion status" "block" And I should see "No" in the "Teacher" "table_row" And I should see "No" in the "Non-editing teacher" "table_row" - And I log out - And I log in as "teacher1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as teacher1 And I navigate to "Reports > Course completion" in current page administration And I follow "Click to mark user complete" - And I log out - And I log in as "student1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student1 And I should see "Status: In progress" in the "Course completion status" "block" And I should see "Yes" in the "Teacher" "table_row" And I should see "No" in the "Non-editing teacher" "table_row" And I follow "More details" And I should see "Yes" in the "Marked complete by Teacher" "table_row" And I should see "No" in the "Marked complete by Non-editing teacher" "table_row" - And I log out - And I log in as "teacher2" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as teacher2 And I navigate to "Reports > Course completion" in current page administration And I follow "Click to mark user complete" # Running completion task just after clicking sometimes fail, as record @@ -93,9 +77,7 @@ Feature: Enable Block Completion in a course using manual completion by others And I wait "1" seconds And I run the scheduled task "core\task\completion_regular_task" And I am on site homepage - And I log out - And I log in as "student1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as student1 Then I should see "Status: Complete" in the "Course completion status" "block" And I should see "Yes" in the "Teacher" "table_row" And I should see "Yes" in the "Non-editing teacher" "table_row" diff --git a/blocks/completionstatus/tests/behat/block_completionstatus_manual_self.feature b/blocks/completionstatus/tests/behat/block_completionstatus_manual_self.feature index c0f86519393..a775ffa75f2 100644 --- a/blocks/completionstatus/tests/behat/block_completionstatus_manual_self.feature +++ b/blocks/completionstatus/tests/behat/block_completionstatus_manual_self.feature @@ -20,16 +20,13 @@ Feature: Enable Block Completion in a course using manual self completion | blockname | contextlevel | reference | pagetypepattern | defaultregion | | completionstatus | Course | C1 | course-view-* | side-pre | | selfcompletion | Course | C1 | course-view-* | side-pre | - And I log in as "teacher1" - And I am on "Course 1" course homepage with editing mode on + And I am on the "Course 1" course page logged in as teacher1 And I navigate to "Course completion" in current page administration And I expand all fieldsets And I set the following fields to these values: | id_criteria_self | 1 | And I press "Save changes" - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I should see "Status: Not yet started" in the "Course completion status" "block" And I should see "No" in the "Self completion" "table_row" And I follow "Complete course" diff --git a/blocks/course_summary/tests/behat/block_course_summary_course.feature b/blocks/course_summary/tests/behat/block_course_summary_course.feature index e9210e936b8..023e245881e 100644 --- a/blocks/course_summary/tests/behat/block_course_summary_course.feature +++ b/blocks/course_summary/tests/behat/block_course_summary_course.feature @@ -21,15 +21,13 @@ Feature: Course summary block used in a course | course_summary | Course | C101 | course-view-* | side-pre | Scenario: Student can view course summary - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 Then "Course summary" "block" should exist And I should see "Course summary" in the "Course summary" "block" And I should see "Proved the course summary block works!" in the "Course summary" "block" Scenario: Teacher can not see edit icon when edit mode is off - When I log in as "teacher1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as teacher1 Then I should see "Proved the course summary block works!" in the "Course summary" "block" And I should see "Course summary" in the "Course summary" "block" And "Edit" "link" should not exist in the "Course summary" "block" diff --git a/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature b/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature index ec608172a06..d9dbf750d68 100644 --- a/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature +++ b/blocks/course_summary/tests/behat/block_course_summary_frontpage.feature @@ -5,11 +5,10 @@ Feature: Course summary block used on the frontpage I can use the course summary block on the frontpage Background: - Given I log in as "admin" - And I enable "course_summary" "block" plugin - And the following "blocks" exist: + Given the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | course_summary | System | 1 | site-index | side-pre | + And I log in as "admin" And I am on site homepage And I navigate to "Edit settings" in current page administration And I set the following fields to these values: diff --git a/blocks/search_forums/tests/behat/block_search_forums_course.feature b/blocks/search_forums/tests/behat/block_search_forums_course.feature index 3f37fdbded6..0e05613747f 100644 --- a/blocks/search_forums/tests/behat/block_search_forums_course.feature +++ b/blocks/search_forums/tests/behat/block_search_forums_course.feature @@ -20,24 +20,18 @@ Feature: The search forums block allows users to search for forum posts on cours | blockname | contextlevel | reference | pagetypepattern | defaultregion | | news_items | Course | C1 | course-view-* | side-pre | | search_forums | Course | C1 | course-view-* | side-pre | - And I log in as "teacher1" - And I am on "Course 1" course homepage - And I navigate to "Edit settings" in current page administration + And I am on the "Course 1" "course editing" page logged in as teacher1 And I set the field "id_newsitems" to "1" And I press "Save and display" - And I log out Scenario: Use the search forum block in a course without any forum posts - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 When I set the field "Search" to "Moodle" And I press "Search" Then I should see "No posts" Scenario: Use the search forum block in a course with a hidden forum and search for posts - Given I log in as "teacher1" - And I am on "Course 1" course homepage - And I add a new topic to "Announcements" forum with: + Given I add a new topic to "Announcements" forum with: | Subject | My subject | | Message | My message | And I am on "Course 1" course homepage with editing mode on @@ -46,24 +40,18 @@ Feature: The search forums block allows users to search for forum posts on cours And I expand all fieldsets And I set the field "id_visible" to "0" And I press "Save and return to course" - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And "Search forums" "block" should exist - When I set the field "Search" to "message" + And I set the field "Search" to "message" And I press "Search" Then I should see "No posts" Scenario: Use the search forum block in a course and search for posts - Given I log in as "teacher1" - And I am on "Course 1" course homepage - And I add a new topic to "Announcements" forum with: + Given I add a new topic to "Announcements" forum with: | Subject | My subject | | Message | My message | - And I log out - When I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And "Search forums" "block" should exist - When I set the field "Search" to "message" + And I set the field "Search" to "message" And I press "Search" Then I should see "My subject" diff --git a/blocks/section_links/tests/behat/show_section_name.feature b/blocks/section_links/tests/behat/show_section_name.feature index a200f72a215..76fdb67107b 100644 --- a/blocks/section_links/tests/behat/show_section_name.feature +++ b/blocks/section_links/tests/behat/show_section_name.feature @@ -23,8 +23,7 @@ Feature: The Section links block can be configured to display section name in ad | section_links | Course | C1 | course-view-* | side-pre | Scenario: Student can see section name under the Section links block - Given I log in as "student1" - When I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 Then I should see "7: Topic 7" in the "Section links" "block" And I follow "7: Topic 7" And I should see "First assignment" diff --git a/blocks/site_main_menu/tests/behat/add_url.feature b/blocks/site_main_menu/tests/behat/add_url.feature index c9be18e2c43..2852822bdcd 100644 --- a/blocks/site_main_menu/tests/behat/add_url.feature +++ b/blocks/site_main_menu/tests/behat/add_url.feature @@ -15,15 +15,16 @@ Feature: Add URL to main menu block @javascript Scenario: Add a URL in menu block and ensure it appears - Given I log in as "admin" - And I am on site homepage - And the following "activity" exists: + Given the following "activity" exists: | activity | url | | course | Acceptance test site | | name | reference link | | intro | mooooooooodle | | externalurl | http://www.moodle.com | | section | 0 | + And I log in as "admin" + And I am on site homepage + And I turn editing mode on When I am on the "reference link" "url activity editing" page And I expand all fieldsets And I set the following fields to these values: diff --git a/calendar/tests/behat/calendar.feature b/calendar/tests/behat/calendar.feature index de7223b3600..eccfabbf94a 100644 --- a/calendar/tests/behat/calendar.feature +++ b/calendar/tests/behat/calendar.feature @@ -43,14 +43,13 @@ Feature: Perform basic calendar functionality | Event title | Really awesome event! | | Description | Come join this awesome event, sucka! | And I log out - And I log in as "student1" - And I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I follow "This month" And I should see "Really awesome event!" And I log out And I log in as "student2" And I follow "This month" - And I should see "Really awesome event!" + Then I should see "Really awesome event!" @javascript Scenario: Create a course event @@ -61,8 +60,7 @@ Feature: Perform basic calendar functionality | Event title | Really awesome event! | | Description | Come join this awesome event, sucka! | And I log out - And I log in as "student1" - When I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I follow "This month" And I click on "Really awesome event!" "link" And "Course 1" "link" should exist in the "Really awesome event!" "dialogue" @@ -82,8 +80,7 @@ Feature: Perform basic calendar functionality | Event title | Really awesome event! | | Description | Come join this awesome event | And I log out - And I log in as "student1" - When I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I follow "This month" Then I follow "Really awesome event!" @@ -95,8 +92,7 @@ Feature: Perform basic calendar functionality | Event title | Really awesome event! | | Description | Come join this awesome event, sucka! | And I log out - And I log in as "student1" - When I am on "Course 1" course homepage + When I am on the "Course 1" course page logged in as student1 And I follow "This month" Then I should not see "Really awesome event!" @@ -168,8 +164,7 @@ Feature: Perform basic calendar functionality @javascript Scenario: Attempt to create event without fill required fields should display validation errors - Given I log in as "teacher1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as teacher1 And I follow "This month" And I click on "New event" "button" When I click on "Save" "button" @@ -195,8 +190,7 @@ Feature: Perform basic calendar functionality @javascript Scenario: Admin can only see all courses if calendar_adminseesall setting is enabled. - Given I log in as "admin" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as admin And I am viewing site calendar And I click on "New event" "button" And I set the field "Type of event" to "Course" @@ -242,8 +236,7 @@ Feature: Perform basic calendar functionality @javascript @accessibility Scenario: The calendar page must be accessible - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 When I follow "This month" Then the page should meet accessibility standards And the page should meet "wcag131, wcag143, wcag412" accessibility standards @@ -269,8 +262,7 @@ Feature: Perform basic calendar functionality @javascript Scenario: Changing the event type should clear previous data - Given I log in as "admin" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as admin And I follow "This month" And I press "New event" And I set the following fields to these values: diff --git a/completion/tests/behat/teacher_manual_completion.feature b/completion/tests/behat/teacher_manual_completion.feature index 3ff267c4187..947321531c0 100644 --- a/completion/tests/behat/teacher_manual_completion.feature +++ b/completion/tests/behat/teacher_manual_completion.feature @@ -19,18 +19,13 @@ Feature: Allow teachers to manually mark users as complete when configured And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | completionstatus | Course | CC1 | course-view-* | side-pre | - And I log in as "admin" - And I am on "Completion course" course homepage + And I am on the "Completion course" course page logged in as admin And I navigate to "Course completion" in current page administration And I set the field "Teacher" to "1" And I press "Save changes" - And I log out - And I log in as "student1" - And I am on "Completion course" course homepage + And I am on the "Completion course" course page logged in as student1 And I should see "Status: Not yet started" - And I log out - When I log in as "teacher1" - And I am on "Completion course" course homepage + When I am on the "Completion course" course page logged in as teacher1 And I follow "View course report" And I should see "Student First" And I follow "Click to mark user complete" @@ -39,7 +34,5 @@ Feature: Allow teachers to manually mark users as complete when configured And I wait "1" seconds And I run the scheduled task "core\task\completion_regular_task" And I am on site homepage - And I log out - Then I log in as "student1" - And I am on "Completion course" course homepage + Then I am on the "Completion course" course page logged in as student1 And I should see "Status: Complete" diff --git a/mod/assign/tests/behat/group_submission.feature b/mod/assign/tests/behat/group_submission.feature index d28c3244b81..b0fa557976d 100644 --- a/mod/assign/tests/behat/group_submission.feature +++ b/mod/assign/tests/behat/group_submission.feature @@ -293,24 +293,18 @@ Feature: Group assignment submissions | preventsubmissionnotingroup | 0 | | submissiondrafts | 0 | | teamsubmission | 1 | - And the following "mod_assign > submissions" exist: | assign | user | onlinetext | | Test assignment name | student1 | I'm the student's first submission | And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | activity_modules | Course | C1 | course-view-* | side-pre | - And I am on the "C1" Course page logged in as student1 And I click on "Assignments" "link" in the "Activities" "block" And I should see "Submitted for grading" - And I log out - And I am on the "C1" Course page logged in as student2 And I click on "Assignments" "link" in the "Activities" "block" And I should see "Submitted for grading" - And I log out - And I am on the "Test assignment name" Activity page logged in as teacher1 When I navigate to "View all submissions" in current page administration Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading" diff --git a/mod/assign/tests/behat/set_availability.feature b/mod/assign/tests/behat/set_availability.feature index 8f8044aae55..2ef62f9a2b6 100644 --- a/mod/assign/tests/behat/set_availability.feature +++ b/mod/assign/tests/behat/set_availability.feature @@ -33,6 +33,7 @@ Feature: Set availability dates for an assignment And the activity date in "Assignment name" should contain "Opens:" And the activity date in "Assignment name" should contain "##tomorrow noon##%A, %d %B %Y, %I:%M##" + @javascript Scenario: Student can see the assignment's due date in the course calendar Given the following "activity" exists: | activity | assign | diff --git a/mod/data/tests/behat/data_activities.feature b/mod/data/tests/behat/data_activities.feature index bbd900fc096..2354f149eaa 100644 --- a/mod/data/tests/behat/data_activities.feature +++ b/mod/data/tests/behat/data_activities.feature @@ -22,8 +22,7 @@ Feature: Users can view the list of data activities and their formatted descript | activity_modules | Course | C1 | course-view-* | side-pre | Scenario: Teachers can view the list of data activities and their formatted descriptions - Given I log in as "teacher1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as teacher1 When I follow "Databases" Then I should see "Test database 1" And I should see "Test database 2" @@ -31,11 +30,9 @@ Feature: Users can view the list of data activities and their formatted descript And I should see "This is an intro with an image: " And "//img[contains(@src, 'some_image.jpg')]" "xpath_element" should exist And "//img[contains(@src, '@@PLUGINFILE@@/some_image.jpg')]" "xpath_element" should not exist - And I log out Scenario: Students can view the list of data activities and their formatted descriptions - Given I log in as "student1" - And I am on "Course 1" course homepage + Given I am on the "Course 1" course page logged in as student1 When I follow "Databases" Then I should see "Test database 1" And I should see "Test database 2" @@ -43,4 +40,3 @@ Feature: Users can view the list of data activities and their formatted descript And I should see "This is an intro with an image: " And "//img[contains(@src, 'some_image.jpg')]" "xpath_element" should exist And "//img[contains(@src, '@@PLUGINFILE@@/some_image.jpg')]" "xpath_element" should not exist - And I log out diff --git a/mod/feedback/tests/behat/coursemapping.feature b/mod/feedback/tests/behat/coursemapping.feature index 09dc9c9f3e9..e042ea8ebc8 100644 --- a/mod/feedback/tests/behat/coursemapping.feature +++ b/mod/feedback/tests/behat/coursemapping.feature @@ -34,7 +34,6 @@ Feature: Mapping courses in a feedback | activity | name | course | idnumber | anonymous | publish_stats | section | | feedback | Course feedback | Acceptance test site | feedback0 | 1 | 1 | 1 | | feedback | Another feedback | C1 | feedback1 | 1 | 1 | 0 | - And I enable "feedback" "block" plugin And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | feedback | Course | C1 | course-view-* | side-pre | diff --git a/mod/forum/tests/behat/advanced_search.feature b/mod/forum/tests/behat/advanced_search.feature index 74e9bc201cc..cad0dce83bb 100644 --- a/mod/forum/tests/behat/advanced_search.feature +++ b/mod/forum/tests/behat/advanced_search.feature @@ -24,9 +24,7 @@ Feature: The forum search allows users to perform advanced searches for forum po And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | news_items | Course | C1 | course-view-* | side-pre | - And I log in as "teacher1" - And I am on "Course 1" course homepage with editing mode on - And I navigate to "Edit settings" in current page administration + And I am on the "Course 1" "course editing" page logged in as teacher1 And I expand all fieldsets And I set the field "id_newsitems" to "1" And I press "Save and display" @@ -37,7 +35,6 @@ Feature: The forum search allows users to perform advanced searches for forum po And I add a new topic to "Announcements" forum with: | Subject | Your subjective| | Message | Your long message | - And I log out Scenario: Perform an advanced search using any term Given I am on the "Announcements" "forum activity" page logged in as student1 diff --git a/mod/forum/tests/behat/edit_post_student.feature b/mod/forum/tests/behat/edit_post_student.feature index eac8124f87d..1e866bc520e 100644 --- a/mod/forum/tests/behat/edit_post_student.feature +++ b/mod/forum/tests/behat/edit_post_student.feature @@ -44,8 +44,6 @@ Feature: Students can edit or delete their forum posts within a set time limit Given the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | recent_activity | Course | C1 | course-view-* | side-pre | - And I log out - And I log in as "admin" And the following config values are set as admin: | maxeditingtime | 1 | And I am on the "Course 1" course page logged in as student1 diff --git a/mod/forum/tests/behat/recent_activity.feature b/mod/forum/tests/behat/recent_activity.feature index 4895e8f8126..c559bbcc726 100644 --- a/mod/forum/tests/behat/recent_activity.feature +++ b/mod/forum/tests/behat/recent_activity.feature @@ -95,8 +95,6 @@ Feature: Users can see the relevant recent forum posts from the recent activity And I am on "Course 1" course homepage And I should see "The egg vs the chicken" in the "Recent activity" "block" And I should see "Student 1's answer" in the "Recent activity" "block" - And I log out - And I log in as "admin" And the following config values are set as admin: | maxeditingtime | 1 | When I am on the "Course 1" course page logged in as student2 diff --git a/mod/glossary/tests/behat/import_entries.feature b/mod/glossary/tests/behat/import_entries.feature index 0420fe14436..b7dcaff7c59 100644 --- a/mod/glossary/tests/behat/import_entries.feature +++ b/mod/glossary/tests/behat/import_entries.feature @@ -21,12 +21,11 @@ Feature: Importing glossary entries | blockname | contextlevel | reference | pagetypepattern | defaultregion | | recent_activity | Course | C1 | course-view-* | side-pre | | tags | Course | C1 | course-view-* | side-pre | + And I am on the "Glossary 1" "glossary activity" page logged in as teacher1 @javascript @block_recent_activity Scenario: Importing glossary entries and checking the Recent activity block - Given I log in as "teacher1" - And I am on the "Glossary 1" "glossary activity" page - And I navigate to "Import entries" in current page administration + Given I navigate to "Import entries" in current page administration And I upload "mod/glossary/tests/fixtures/texfilter_glossary_en.xml" file to "File to import" filemanager When I press "Submit" Then I should see "103" in the "Total entries:" "table_row" @@ -37,9 +36,7 @@ Feature: Importing glossary entries @javascript @block_tags Scenario: Importing glossary entries and checking Tags block - Given I log in as "teacher1" - And I am on the "Glossary 1" "glossary activity" page - And I navigate to "Import entries" in current page administration + Given I navigate to "Import entries" in current page administration And I upload "mod/glossary/tests/fixtures/musicians.xml" file to "File to import" filemanager When I press "Submit" And I am on "Course 1" course homepage diff --git a/my/tests/behat/reset_all_pages.feature b/my/tests/behat/reset_all_pages.feature index 4ceba235d18..439beac89c9 100644 --- a/my/tests/behat/reset_all_pages.feature +++ b/my/tests/behat/reset_all_pages.feature @@ -46,13 +46,11 @@ Feature: Reset all personalised pages to default And I log out And I log in as "student1" - And I follow "Dashboard" in the user menu And I should not see "Latest announcements" And I should see "Online users" And I log out And I log in as "student3" - And I follow "Dashboard" in the user menu And I should not see "Latest announcements" And I should see "Online users" And I log out @@ -64,21 +62,18 @@ Feature: Reset all personalised pages to default And I log out And I log in as "student1" - And I follow "Dashboard" in the user menu Then I should see "Latest announcements" And I should not see "Comments" And I should not see "Online users" And I log out And I log in as "student3" - And I follow "Dashboard" in the user menu And I should see "Latest announcements" And I should not see "Online users" And I log out # Check that this did not affect the customised profiles. - And I log in as "student2" - And I follow "Profile" in the user menu + And I am on the "student2" "user > profile" page logged in as student2 And I should see "Logged in user" And I should not see "Latest announcements" @@ -89,13 +84,11 @@ Feature: Reset all personalised pages to default And I add the "Latest announcements" block And I log out - And I log in as "student2" - And I follow "Profile" in the user menu + And I am on the "student2" "user > profile" page logged in as student2 And I should not see "Latest announcements" And I log out - And I log in as "student3" - And I follow "Profile" in the user menu + And I am on the "student3" "user > profile" page logged in as student3 And I should not see "Latest announcements" And I log out @@ -105,19 +98,16 @@ Feature: Reset all personalised pages to default And I should see "All profile pages have been reset to default." And I log out - And I log in as "student2" - And I follow "Profile" in the user menu + And I am on the "student2" "user > profile" page logged in as student2 Then I should see "Latest announcements" And I should not see "Logged in user" And I log out - And I log in as "student3" - And I follow "Profile" in the user menu + And I am on the "student3" "user > profile" page logged in as student3 And I should see "Latest announcements" And I log out # Check that this did not affect the customised dashboards. And I log in as "student1" - And I follow "Dashboard" in the user menu And I should see "Comments" And I should not see "Latest announcements" diff --git a/user/tests/behat/user_grade_navigation.feature b/user/tests/behat/user_grade_navigation.feature index 8b815ba7954..edefb8566ea 100644 --- a/user/tests/behat/user_grade_navigation.feature +++ b/user/tests/behat/user_grade_navigation.feature @@ -27,8 +27,7 @@ Feature: The student can navigate to their grades page and user grade report. | assign | C1 | a2 | Test assignment two | Submit something! | 100 | | assign | C1 | a3 | Test assignment three | Submit something! | 150 | | assign | C2 | a4 | Test assignment four | Submit something! | 150 | - And I log in as "teacher1" - And I am on "Course 1" course homepage + And I am on the "Course 1" course page logged in as teacher1 And I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "150.00" to the user "Student 1" for the grade item "Test assignment one" @@ -72,8 +71,6 @@ Feature: The student can navigate to their grades page and user grade report. | blockname | contextlevel | reference | pagetypepattern | defaultregion | | mentees | System | 1 | site-index | side-pre | When I log in as "admin" - And I am on site homepage - And I turn editing mode on And I am on the "student1" "user > profile" page And I click on "Preferences" "link" in the ".profile_tree" "css_element" And I follow "Assign roles relative to this user"