[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_message
   2  Feature: Recent conversations contains my recent conversations
   3    In order to view my recent conversations
   4    As a user
   5    I have the option to filter messages by recent conversations
   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        | user3 | User | Three | three@example.com |
  13  
  14    Scenario: View that I don't have recent conversations
  15      Given I log in as "user1"
  16      And I follow "Messages" in the user menu
  17      When I select "Recent conversations" from the "Message navigation:" singleselect
  18      Then I should not see "User Two"
  19      And I should not see "User Three"
  20  
  21    Scenario: View my recent conversations
  22      Given I log in as "user1"
  23      And I send "Message from user1 to user2" message to "User Two" user
  24      And I send "Message from user1 to user3" message to "User Three" user
  25      And I follow "Messages" in the user menu
  26      When I select "Recent conversations" from the "Message navigation:" singleselect
  27      Then I should see "User Two"
  28      And I should see "User Three"
  29      And I should see "Message from user1 to user2"
  30      And I should see "Message from user1 to user3"
  31      And I log out
  32      And I log in as "user2"
  33      And I follow "Messages" in the user menu
  34      And I select "Recent conversations" from the "Message navigation:" singleselect
  35      And I should see "Message from user1 to user2"
  36      And I should not see "Message from user1 to user3"


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