[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_message
   2  Feature: Users can send messages to each other
   3    In order to communicate with another user
   4    As a user
   5    I can send private messages
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | user1 | User | One | one@example.com |
  11        | user2 | User | Two | two@example.com |
  12  
  13    @javascript
  14    Scenario: Using the 'Send message' dialog on one's profile
  15      Given the following config values are set as admin:
  16        | forceloginforprofiles | 0 |
  17      And I log in as "user1"
  18      And I follow "Messages" in the user menu
  19      And I set the field "Search people and messages" to "User Two"
  20      And I press "Search people and messages"
  21      And I follow "Picture of User Two"
  22      When I press "Message"
  23      And I set the field "Message to send" to "Lorem ipsum sa messagus textus"
  24      And I press "Send message"
  25      And I am on homepage
  26      And I follow "Messages" in the user menu
  27      And I set the field "Search people and messages" to "User Two"
  28      And I press "Search people and messages"
  29      And I follow "Send message to User Two"
  30      Then I should see "Lorem ipsum sa messagus textus"
  31  
  32    @javascript
  33    Scenario: Using the 'Send message' dialog on one's course profile
  34      Given the following "courses" exist:
  35        | fullname | shortname | category |
  36        | Course 1 | C1 | 0 |
  37      And the following "course enrolments" exist:
  38        | user | course | role |
  39        | user1 | C1 | student |
  40        | user2 | C1 | student |
  41      And I log in as "user1"
  42      And I follow "Course 1"
  43      And I follow "Participants"
  44      And I follow "User Two"
  45      When I press "Message"
  46      And I set the field "Message to send" to "Lorem ipsum sa messagus textus"
  47      And I press "Send message"
  48      And I am on homepage
  49      And I follow "Messages" in the user menu
  50      And I set the field "Search people and messages" to "User Two"
  51      And I press "Search people and messages"
  52      And I follow "Send message to User Two"
  53      Then I should see "Lorem ipsum sa messagus textus"
  54  
  55    @javascript
  56    Scenario: Using the 'Messages' page
  57      Given the following "courses" exist:
  58        | fullname | shortname | category |
  59        | Course 1 | C1 | 0 |
  60      And the following "course enrolments" exist:
  61        | user | course | role |
  62        | user1 | C1 | student |
  63        | user2 | C1 | student |
  64      And I log in as "user1"
  65      And I follow "Messages" in the user menu
  66      And I set the field "Search people and messages" to "User Two"
  67      And I press "Search people and messages"
  68      And I follow "Send message to User Two"
  69      When I set the field "message" to "Lorem ipsum sa messagus textus"
  70      And I press "Send message"
  71      Then I should see "Lorem ipsum sa messagus textus"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1