[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_course 2 Feature: Browse course list and return back from enrolment page 3 In order to navigate between course list consistently 4 As a user 5 I need to be able to return back from enrolment page 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | user1 | User | 1 | user1@example.com | 11 | user2 | User | 2 | user2@example.com | 12 And the following "categories" exist: 13 | name | category | idnumber | 14 | Sample category | 0 | CAT1 | 15 And the following "courses" exist: 16 | fullname | shortname | category | 17 | Sample course | C1 | 0 | 18 | Course 1 | COURSE1 | CAT1 | 19 20 Scenario: A user can return to the category page from enrolment page 21 When I log in as "user2" 22 And I click on "Courses" "link" in the "Navigation" "block" 23 And I follow "Miscellaneous" 24 And I follow "Sample course" 25 And I press "Continue" 26 Then I should see "Courses" in the ".breadcrumb-nav" "css_element" 27 And I click on "Courses" "link" in the ".breadcrumb-nav" "css_element" 28 And I follow "Sample category" 29 And I follow "Course 1" 30 And I press "Continue" 31 And I should see "Sample category" in the ".breadcrumb-nav" "css_element" 32 33 @javascript 34 Scenario: A user can return to the previous page from enrolment page by clicking navigation links 35 When I log in as "user2" 36 And I follow "Preferences" in the user menu 37 And I follow "Edit profile" 38 And I expand "Courses" node 39 And I expand "Sample category" node 40 And I follow "Course 1" 41 And I press "Continue" 42 Then I should see "Edit profile" in the ".breadcrumb-nav" "css_element" 43 44 Scenario: User can return to the choice activity from enrolment page 45 Given the following "roles" exist: 46 | name | shortname | description | archetype | 47 | Non-enrolled | custom1 | My custom role 1 | user | 48 And the following "role assigns" exist: 49 | user | role | contextlevel | reference | 50 | user1 | custom1 | Course | C1 | 51 And the following "activities" exist: 52 | activity | name | intro | course | idnumber | 53 | choice | Test choice | Test choice description | C1 | choice1 | 54 And I log in as "admin" 55 And I set the following system permissions of "Non-enrolled" role: 56 | capability | permission | 57 | moodle/course:view | Allow | 58 And I log out 59 When I log in as "user1" 60 And I click on "Courses" "link" in the "Navigation" "block" 61 And I follow "Miscellaneous" 62 And I follow "Sample course" 63 And I follow "Test choice" 64 And I should see "Sorry, only enrolled users are allowed to make choices." 65 And I press "Enrol me in this course" 66 And I press "Continue" 67 Then I should see "Test choice" in the ".breadcrumb-nav" "css_element"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |