[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/message/tests/behat/ -> message_participants.feature (source)

   1  @core @core_message
   2  Feature: An user can message course participants
   3    In order to communicate efficiently with my students
   4    As a teacher
   5    I need to message them all
   6  
   7    @javascript
   8    Scenario: An user can message multiple course participants including him/her self
   9      Given the following "users" exist:
  10        | username | firstname | lastname | email |
  11        | teacher1 | Teacher | 1 | [email protected] |
  12        | student1 | Student | 1 | [email protected] |
  13        | student2 | Student | 2 | [email protected] |
  14        | student3 | Student | 3 | [email protected] |
  15      And the following "courses" exist:
  16        | fullname | shortname | format |
  17        | Course 1 | C1 | topics |
  18      And the following "course enrolments" exist:
  19        | user | course | role |
  20        | teacher1 | C1 | editingteacher |
  21        | student1 | C1 | student |
  22      And I log in as "teacher1"
  23      And I follow "Course 1"
  24      And I follow "Participants"
  25      When I click on "input[type='checkbox']" "css_element" in the "Teacher 1" "table_row"
  26      And I click on "input[type='checkbox']" "css_element" in the "Student 1" "table_row"
  27      And I set the field "With selected users..." to "Send a message"
  28      And I set the following fields to these values:
  29        | messagebody | Here it is, the message content |
  30      And I press "Preview"
  31      And I press "Send message"
  32      And I follow "Home"
  33      And I navigate to "Messages" node in "My profile"
  34      And I set the field "Message navigation:" to "Recent conversations"
  35      Then I should see "Here it is, the message content"
  36      And I should see "Student 1"
  37      And I click on "this conversation" "link" in the "//div[@class='singlemessage'][contains(., 'Teacher 1')]" "xpath_element"
  38      And I should see "Here it is, the message content"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1