MDL-55074 behat: Use full navigation path

This commit is contained in:
Rajesh Taneja 2016-10-26 10:15:18 +08:00
parent a360594259
commit 7f8c9bb852
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4
6 changed files with 10 additions and 10 deletions

View File

@ -17,7 +17,7 @@ Feature: Enable Block Badges in a course
And I log in as "teacher1"
And I follow "Course 1"
# Issue badge 1 of 2
And I navigate to "Add a new badge" node in "Badges"
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I set the following fields to these values:
| id_name | Badge 1 |
| id_description | Badge 1 |
@ -34,7 +34,7 @@ Feature: Enable Block Badges in a course
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
And I press "Award badge"
# Issue Badge 2 of 2
And I navigate to "Add a new badge" node in "Badges"
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I set the following fields to these values:
| id_name | Badge 2 |
| id_description | Badge 2 |

View File

@ -17,7 +17,7 @@ Feature: Enable Block Badges on the dashboard and view awarded badges
And I log in as "teacher1"
And I follow "Course 1"
# Issue badge 1 of 2
And I navigate to "Add a new badge" node in "Badges"
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I set the following fields to these values:
| id_name | Badge 1 |
| id_description | Badge 1 |

View File

@ -22,7 +22,7 @@ Feature: Enable Block Badges on the frontpage and view awarded badges
And I log in as "teacher1"
And I follow "Course 1"
# Issue badge 1 of 2
And I navigate to "Add a new badge" node in "Badges"
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I set the following fields to these values:
| id_name | Badge 1 |
| id_description | Badge 1 |

View File

@ -37,7 +37,7 @@ Feature: Enable Block Completion in a course using manual completion by others
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I navigate to "Course completion" node in "Reports"
And I navigate to "Course completion" node in "Course administration > Reports"
And I follow "Click to mark user complete"
# Running completion task just after clicking sometimes fail, as record
# should be created before the task runs.
@ -74,7 +74,7 @@ Feature: Enable Block Completion in a course using manual completion by others
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I navigate to "Course completion" node in "Reports"
And I navigate to "Course completion" node in "Course administration > Reports"
And I follow "Click to mark user complete"
And I log out
And I log in as "student1"
@ -88,7 +88,7 @@ Feature: Enable Block Completion in a course using manual completion by others
And I log out
And I log in as "teacher2"
And I follow "Course 1"
And I navigate to "Course completion" node in "Reports"
And I navigate to "Course completion" node in "Course administration > Reports"
And I follow "Click to mark user complete"
# Running completion task just after clicking sometimes fail, as record
# should be created before the task runs.

View File

@ -153,7 +153,7 @@ Feature: View the course overview block on the dashboard and test it's functiona
And I click on "Enable" "link" in the "Course meta link" "table_row"
And I am on site homepage
And I follow "Course 2"
And I navigate to "Enrolment methods" node in "Users"
And I navigate to "Enrolment methods" node in "Course administration > Users"
And I add "Course meta link" enrolment method with:
| Link course | C1 |
And I log out

View File

@ -58,7 +58,7 @@ Feature: Lesson reset
And I log in as "teacher1"
And I follow "Course 1"
And I follow "Test lesson name"
And I navigate to "Overview" node in "Reports"
And I navigate to "Overview" node in "Lesson administration > Reports"
And I should see "Sam1 Student1"
And I navigate to "Reset" node in "Course administration"
And I set the following fields to these values:
@ -67,7 +67,7 @@ Feature: Lesson reset
And I press "Continue"
And I follow "Course 1"
And I follow "Test lesson name"
And I navigate to "Overview" node in "Reports"
And I navigate to "Overview" node in "Lesson administration > Reports"
Then I should see "No attempts have been made on this lesson"
Scenario: Use course reset to remove user overrides.