mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-58265 core_test: remove unnecessary steps
This commmit removes steps that take behat to site home page to actually get to a course page. Part of MDL-55611 epic.
This commit is contained in:
parent
c987d1b2ef
commit
93be3f730c
60 changed files with 7 additions and 162 deletions
|
@ -57,7 +57,6 @@ Feature: Set up contextual data for tests
|
|||
| Grouping 1 | C1 | GG1 |
|
||||
| Grouping 2 | C1 | GG2 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Users > Groups" in current page administration
|
||||
Then I should see "Group 1"
|
||||
|
@ -87,7 +86,6 @@ Feature: Set up contextual data for tests
|
|||
| mod/forum:editanypost | Allow | student | Course | C1 |
|
||||
| mod/forum:replynews | Prevent | editingteacher | Course | C1 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Users > Permissions" in current page administration
|
||||
And I set the field "Advanced role override" to "Student (1)"
|
||||
|
@ -144,23 +142,19 @@ Feature: Set up contextual data for tests
|
|||
Then "Edit settings" "link" should exist in current page administration
|
||||
And I log out
|
||||
And I log in as "user2"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And "Turn editing on" "link" should exist in current page administration
|
||||
And I log out
|
||||
And I log in as "user3"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And "Turn editing on" "link" should exist in current page administration
|
||||
And I log out
|
||||
And I log in as "user4"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And "Turn editing on" "link" should exist in current page administration
|
||||
And I log out
|
||||
And I log in as "user5"
|
||||
And I should see "You are logged in as"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I should see "You can not enrol yourself in this course."
|
||||
|
||||
|
@ -199,7 +193,6 @@ Feature: Set up contextual data for tests
|
|||
| activity | name | intro | course | idnumber | grade |
|
||||
| assign | Test assignment name with scale | Test assignment description | C1 | assign1 | Test Scale 1 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
Then I should see "Test assignment name"
|
||||
# Assignment 2.2 module type is disabled by default
|
||||
|
@ -261,7 +254,6 @@ Feature: Set up contextual data for tests
|
|||
| grouping | group |
|
||||
| GG1 | G1 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Users > Groups" in current page administration
|
||||
Then the "groups" select box should contain "Group 1 (1)"
|
||||
|
@ -344,7 +336,6 @@ Feature: Set up contextual data for tests
|
|||
| Test Grade Item 2 | C1 | Grade category 1 |
|
||||
| Test Grade Item 3 | C1 | Grade sub category 2 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
||||
Then I should see "Test Grade Item 1"
|
||||
|
@ -373,7 +364,6 @@ Feature: Set up contextual data for tests
|
|||
| name | scale |
|
||||
| Test Scale 1 | Disappointing, Good, Very good, Excellent |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Scales" in the course gradebook
|
||||
Then I should see "Test Scale 1"
|
||||
|
@ -395,7 +385,6 @@ Feature: Set up contextual data for tests
|
|||
And the following config values are set as admin:
|
||||
| enableoutcomes | 1 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I follow "Outcomes"
|
||||
Then I should see "Grade outcome 1" in the "#addoutcomes" "css_element"
|
||||
|
@ -424,7 +413,6 @@ Feature: Set up contextual data for tests
|
|||
And the following config values are set as admin:
|
||||
| enableoutcomes | 1 |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
||||
Then I should see "Test Outcome Grade Item 1"
|
||||
|
@ -442,6 +430,5 @@ Feature: Set up contextual data for tests
|
|||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| online_users | Course | C1 | course-view-* | site-pre |
|
||||
When I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
Then I should see "Online users"
|
||||
|
|
|
@ -33,7 +33,6 @@ Feature: Verify that all form fields values can be get and set
|
|||
| activity | course | idnumber | name | intro | firstpagetitle | wikimode | visible |
|
||||
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Reset" node in "Course administration"
|
||||
# Select (multi-select) - Checking "the select box should contain".
|
||||
|
@ -48,7 +47,6 @@ Feature: Verify that all form fields values can be get and set
|
|||
And the "Unenrol users" select box should not contain "President"
|
||||
And the "Unenrol users" select box should not contain "Baker"
|
||||
And the "Unenrol users" select box should not contain "President, Baker"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I follow "Test this one"
|
||||
|
@ -115,7 +113,6 @@ Feature: Verify that all form fields values can be get and set
|
|||
And the field "one" matches value "1"
|
||||
And the field "two" matches value ""
|
||||
# Check if field xpath set/match works.
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Edit settings" node in "Course administration"
|
||||
And I set the field with xpath "//input[@id='id_idnumber']" to "Course id number"
|
||||
|
|
|
@ -22,7 +22,6 @@ Feature: tool_monitor_subscriptions
|
|||
And I log in as "admin"
|
||||
And I navigate to "Event monitoring rules" node in "Site administration > Reports"
|
||||
And I click on "Enable" "link"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Event monitoring rules" node in "Course administration > Reports"
|
||||
And I press "Add a new rule"
|
||||
|
@ -132,7 +131,6 @@ Feature: tool_monitor_subscriptions
|
|||
And I follow "Subscribe to rule \"New rule course level\""
|
||||
And I should see "Subscription successfully created"
|
||||
And "#toolmonitorsubs_r0" "css_element" should exist
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I trigger cron
|
||||
And I am on site homepage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue