forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wip-MDL-18309-master' of git://github.com/marinaglancy/…
…moodle
- Loading branch information
Showing
18 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...on/yui/build/moodle-block_navigation-navigation/moodle-block_navigation-navigation-min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@core @core_course | ||
Feature: Browse course list and return back from enrolment page | ||
In order to navigate between course list consistently | ||
As a user | ||
I need to be able to return back from enrolment page | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| user1 | User | 1 | user1@asd.com | | ||
| user2 | User | 2 | user2@asd.com | | ||
And the following "categories" exist: | ||
| name | category | idnumber | | ||
| Sample category | 0 | CAT1 | | ||
And the following "courses" exist: | ||
| fullname | shortname | category | | ||
| Sample course | C1 | 0 | | ||
| Course 1 | COURSE1 | CAT1 | | ||
|
||
@javascript | ||
Scenario: A user can return to the category page from enrolment page | ||
When I log in as "user2" | ||
And I click on "Courses" "link" in the "Navigation" "block" | ||
And I follow "Miscellaneous" | ||
And I follow "Sample course" | ||
And I press "Continue" | ||
Then I should see "Courses" in the ".breadcrumb-nav" "css_element" | ||
And I click on "Courses" "link" in the ".breadcrumb-nav" "css_element" | ||
And I follow "Sample category" | ||
And I follow "Course 1" | ||
And I press "Continue" | ||
And I should see "Sample category" in the ".breadcrumb-nav" "css_element" | ||
|
||
@javascript | ||
Scenario: A user can return to the previous page from enrolment page by clicking navigation links | ||
When I log in as "user2" | ||
And I expand "My profile settings" node | ||
And I follow "Edit profile" | ||
And I expand "Courses" node | ||
And I expand "Sample category" node | ||
And I follow "Course 1" | ||
And I press "Continue" | ||
Then I should see "Edit profile" in the ".breadcrumb-nav" "css_element" | ||
|
||
@javascript | ||
Scenario: User can return to the choice activity from enrolment page | ||
Given the following "roles" exist: | ||
| name | shortname | description | archetype | | ||
| Non-enrolled | custom1 | My custom role 1 | user | | ||
And the following "role assigns" exist: | ||
| user | role | contextlevel | reference | | ||
| user1 | custom1 | Course | C1 | | ||
And the following "activities" exist: | ||
| activity | name | intro | course | idnumber | | ||
| choice | Test choice | Test choice description | C1 | choice1 | | ||
And I log in as "admin" | ||
And I set the following system permissions of "Non-enrolled" role: | ||
| capability | permission | | ||
| moodle/course:view | Allow | | ||
And I log out | ||
When I log in as "user1" | ||
And I click on "Courses" "link" in the "Navigation" "block" | ||
And I follow "Miscellaneous" | ||
And I follow "Sample course" | ||
And I follow "Test choice" | ||
And I should see "Sorry, only enrolled users are allowed to make choices." | ||
And I press "Enrol me in this course" | ||
And I press "Continue" | ||
Then I should see "Test choice" in the ".breadcrumb-nav" "css_element" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.