403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/myschool/triamudom/tuprblearn/message/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/tuprblearn/message/tests/behat/self_conversation.feature
@core @core_message @javascript
Feature: Self conversation
  In order to have self-conversations
  As a user
  I need to be able to send messages to myself and read them

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | student1 | Student   | 1        | [email protected] |
    And the following config values are set as admin:
      | messaging        | 1 |
      | messagingminpoll | 1 |

  Scenario: Self conversation exists
    Given I log in as "student1"
    When I open messaging
    Then "Student 1" "core_message > Message" should exist
    And I select "Student" conversation in messaging
    And I should see "Personal space"

  Scenario: Self conversation can be unstarred
    Given I log in as "student1"
    When I open messaging
    Then "Student 1" "core_message > Message" should exist
    And I select "Student" conversation in messaging
    And I open contact menu
    And I click on "Unstar" "link" in the "Student 1" "core_message > Message header"
    And I go back in "view-conversation" message drawer
    And I open the "Starred" conversations list
    And I should not see "Student 1" in the "favourites" "core_message > Message list area"
    And I open the "Private" conversations list
    And I should see "Student 1" in the "messages" "core_message > Message list area"

  Scenario: Self conversation can be deleted
    Given I log in as "student1"
    When I open messaging
    Then "Student 1" "core_message > Message" should exist
    And I select "Student 1" conversation in messaging
    And I open contact menu
    And I click on "Delete conversation" "link" in the "Student 1" "core_message > Message header"
    And I should see "Delete"
    And I click on "//button[@data-action='confirm-delete-conversation']" "xpath_element"
    And I should not see "Delete"
    And I go back in "view-conversation" message drawer
    And I open the "Starred" conversations list
    And I should not see "Student 1" in the "favourites" "core_message > Message list area"
    And I open the "Private" conversations list
    And I should not see "Student 1" in the "messages" "core_message > Message list area"

  Scenario: Send a message to a self-conversation via message drawer
    Given I log in as "student1"
    When I open messaging
    Then "Student 1" "core_message > Message" should exist
    And I select "Student 1" conversation in messaging
    And I send "Hi!" message in the message area
    And I should see "Hi!" in the "Student 1" "core_message > Message conversation"
    And I should see "##today##j F##" in the "Student 1" "core_message > Message conversation"

  Scenario: Send a message to a self-conversation via user profile
    Given I log in as "student1"
    When I follow "Profile" in the user menu
    Then I should see "Message"
    And I click on "Message" "icon"
    And I send "Hi!" message in the message area
    And I should see "Hi!" in the "Student 1" "core_message > Message conversation"
    And I should see "##today##j F##" in the "Student 1" "core_message > Message conversation"

Youez - 2016 - github.com/yon3zu
LinuXploit