[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_notes 2 Feature: Add notes to course participants 3 In order to share information with other staff 4 As a teacher 5 I need to add notes from the course particpants list 6 7 Scenario: An teacher can add multiple notes 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 | student2 | Student | 2 | student2@example.com | 13 | student3 | Student | 3 | student3@example.com | 14 And the following "courses" exist: 15 | fullname | shortname | format | 16 | Course 1 | C1 | topics | 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | teacher1 | C1 | editingteacher | 20 | student1 | C1 | student | 21 | student2 | C1 | student | 22 | student3 | C1 | student | 23 And I log in as "teacher1" 24 And I follow "Course 1" 25 And I follow "Participants" 26 And I set the field with xpath "//tr[contains(normalize-space(.), 'Student 1')]//input[@type='checkbox']" to "1" 27 And I set the field with xpath "//tr[contains(normalize-space(.), 'Student 2')]//input[@type='checkbox']" to "1" 28 And I set the field with xpath "//tr[contains(normalize-space(.), 'Student 3')]//input[@type='checkbox']" to "1" 29 And I set the field "With selected users..." to "Add a new note" 30 And I press "OK" 31 # Add a note to student 1, but leave student 2 empty and student 3 with space. 32 When I set the field with xpath "//tr[contains(normalize-space(.), 'Student 1')]//textarea" to "Student 1 needs to pick up his game" 33 And I set the field with xpath "//tr[contains(normalize-space(.), 'Student 2')]//textarea" to "" 34 And I set the field with xpath "//tr[contains(normalize-space(.), 'Student 3')]//textarea" to " " 35 And I press "Save changes" 36 And I follow "Student 1" 37 And I follow "Notes" 38 # Student 1 has note from Teacher 39 Then I should see "Teacher" in the "region-main" "region" 40 And I should see "Student 1 needs to pick up his game" 41 And I follow "Participants" 42 And I follow "Student 2" 43 And I follow "Notes" 44 And I follow "Course 1" 45 And I follow "Participants" 46 And I follow "Notes" 47 Then I should see "Student 1" 48 And I should see "Student 1 needs to pick up his game" 49 # Verify Student 2 does not have a note added. 50 And I should not see "Student 2" 51 And I should not see "Student 3"
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 |