[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_cohort @_file_upload 2 Feature: Upload users to a cohort 3 In order to quickly fill site-wide groups with users 4 As an admin 5 I need to upload a file with users data containing cohort assigns 6 7 @javascript 8 Scenario: Upload users and assign them to a course with cohort enrolment method enabled 9 Given the following "cohorts" exist: 10 | name | idnumber | 11 | Cohort 1 | ASD | 12 | Cohort 2 | DSA | 13 And the following "courses" exist: 14 | fullname | shortname | category | 15 | Course 1 | C1 | 0 | 16 | Course 2 | C2 | 0 | 17 And I log in as "admin" 18 And I am on site homepage 19 And I follow "Course 1" 20 And I add "Cohort sync" enrolment method with: 21 | Cohort | Cohort 1 | 22 And I am on site homepage 23 And I follow "Course 2" 24 And I add "Cohort sync" enrolment method with: 25 | Cohort | Cohort 2 | 26 When I navigate to "Upload users" node in "Site administration > Users > Accounts" 27 And I upload "lib/tests/fixtures/upload_users_cohorts.csv" file to "File" filemanager 28 And I press "Upload users" 29 And I press "Upload users" 30 And I press "Continue" 31 And I follow "Cohorts" 32 And I click on "Assign" "link" in the "Cohort 1" "table_row" 33 Then the "Current users" select box should contain "Tom Jones (tomjones@example.com)" 34 And the "Current users" select box should contain "Bob Jones (bobjones@example.com)" 35 And I press "Back to cohorts" 36 And I click on "Assign" "link" in the "Cohort 2" "table_row" 37 And the "Current users" select box should contain "Mary Smith (marysmith@example.com)" 38 And the "Current users" select box should contain "Alice Smith (alicesmith@example.com)" 39 And I am on site homepage 40 And I follow "Course 1" 41 And I expand "Users" node 42 And I follow "Enrolled users" 43 And I should see "Tom Jones" 44 And I should see "Bob Jones" 45 And I should not see "Mary Smith" 46 And I am on site homepage 47 And I follow "Course 2" 48 And I expand "Users" node 49 And I follow "Enrolled users" 50 And I should see "Mary Smith" 51 And I should see "Alice Smith" 52 And I should not see "Tom Jones"
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 |