You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1013 B
27 lines
1013 B
@enrol
|
|
Feature: User can be enrolled into a course
|
|
In order to let them participate in course activities
|
|
As an admin
|
|
I must be able to enrol users
|
|
|
|
Background:
|
|
Given the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| student1 | Studie | One | student1@example.com |
|
|
And the following "courses" exist:
|
|
| fullname | shortname |
|
|
| Course 001 | C001 |
|
|
And I log in as "admin"
|
|
And I am on "Course 001" course homepage
|
|
|
|
Scenario: User can be enrolled without javascript
|
|
When I enrol "Studie One" user as "Student"
|
|
And I am on "Course 001" course homepage
|
|
And I navigate to "Users > Enrolled users" in current page administration
|
|
Then I should see "Studie One"
|
|
|
|
@javascript
|
|
Scenario: User can be enrolled with javascript enrol element
|
|
When I enrol "Studie One" user as "Student"
|
|
And I navigate to "Users > Enrolled users" in current page administration
|
|
Then I should see "Studie One"
|
|
|