mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -10,7 +10,7 @@ Feature: As a user, "Course preferences" allows me to set my course preference(s
|
|||
| admin | C1 | editingteacher |
|
||||
And I am on site homepage
|
||||
And I follow "Preferences" in the user menu
|
||||
And I am on course page "Course preferences"
|
||||
And I follow "Course preferences"
|
||||
|
||||
@javascript
|
||||
Scenario: As a user, "activity chooser" should be the default.
|
||||
|
@ -18,7 +18,7 @@ Feature: As a user, "Course preferences" allows me to set my course preference(s
|
|||
Given the field "enableactivitychooser" matches value "1"
|
||||
# See that the "activity chooser" is actually shown by default in course page.
|
||||
When I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "Add an activity or resource" in the "Topic 1" "section"
|
||||
And I turn editing mode on
|
||||
Then I should see "Add an activity or resource" in the "Topic 1" "section"
|
||||
|
@ -29,7 +29,7 @@ Feature: As a user, "Course preferences" allows me to set my course preference(s
|
|||
Given I set the field "enableactivitychooser" to "0"
|
||||
And I press "Save changes"
|
||||
When I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "Add a resource..." in the "Topic 1" "section"
|
||||
And I turn editing mode on
|
||||
Then I should see "Add a resource..." in the "Topic 1" "section"
|
||||
|
|
|
@ -27,12 +27,12 @@ Feature: Set the site home page and dashboard as the default home page
|
|||
And I am on site homepage
|
||||
And I follow "Make this my default home page"
|
||||
And I should not see "Make this my default home page"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Home" "text" should exist in the ".breadcrumb-nav" "css_element"
|
||||
And I am on site homepage
|
||||
And I follow "Dashboard"
|
||||
And I follow "Make this my default home page"
|
||||
And I should not see "Make this my default home page"
|
||||
And I am on site homepage
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
Then "Dashboard" "text" should exist in the ".breadcrumb-nav" "css_element"
|
||||
|
|
|
@ -28,7 +28,7 @@ Feature: The student can navigate to their grades page and user grade report.
|
|||
| 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 page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
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"
|
||||
|
|
|
@ -24,19 +24,19 @@ Feature: Access to full profiles of users
|
|||
|
||||
Scenario: Viewing full profiles with default settings
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
# Another student's full profile is not visible
|
||||
And I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
Then I should not see "Full profile"
|
||||
# Teacher's full profile is visible
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I follow "Teacher 1"
|
||||
And I follow "Full profile"
|
||||
And I should see "First access to site"
|
||||
# Own full profile is visible
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I click on "Student 1" "link" in the "#participants" "css_element"
|
||||
And I follow "Full profile"
|
||||
|
@ -47,7 +47,7 @@ Feature: Access to full profiles of users
|
|||
Given the following config values are set as admin:
|
||||
| forceloginforprofiles | 0 |
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
And I follow "Full profile"
|
||||
|
@ -59,7 +59,7 @@ Feature: Access to full profiles of users
|
|||
| moodle/user:viewdetails | Allow |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
And I follow "Full profile"
|
||||
|
@ -91,7 +91,7 @@ Feature: Access to full profiles of users
|
|||
@javascript
|
||||
Scenario: View full profiles of someone in the same group in a course with separate groups.
|
||||
Given I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" node in "Course administration"
|
||||
And I set the following fields to these values:
|
||||
| Group mode | Separate groups |
|
||||
|
@ -105,7 +105,7 @@ Feature: Access to full profiles of users
|
|||
And I should see "The details of this user are not available to you"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Users > Groups" in current page administration
|
||||
And I press "Create group"
|
||||
And I set the following fields to these values:
|
||||
|
|
|
@ -57,7 +57,7 @@ Feature: View course participants
|
|||
@javascript
|
||||
Scenario: Use select and deselect all buttons
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
When I press "Select all"
|
||||
Then the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "1"
|
||||
|
@ -109,7 +109,7 @@ Feature: View course participants
|
|||
| user | course | role |
|
||||
| student20 | C1 | student |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I follow "Surname"
|
||||
And I press "Select all users on this page"
|
||||
|
|
|
@ -27,28 +27,26 @@ Feature: Access to preferences page
|
|||
|
||||
Scenario: A student and teacher with normal permissions can not view another user's permissions page.
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
And I should not see "Preferences" in the "region-main" "region"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
Then I should not see "Preferences" in the "region-main" "region"
|
||||
|
||||
Scenario: Administrators and Managers can view another user's permissions page.
|
||||
Given I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
And I should see "Preferences" in the "region-main" "region"
|
||||
And I log out
|
||||
And I log in as "manager1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I navigate to course participants
|
||||
And I follow "Student 2"
|
||||
Then I should see "Preferences" in the "region-main" "region"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue