Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 108... Línea 108...
108
    And I open contact menu
108
    And I open contact menu
109
    And I click on "Remove from contacts" "link"
109
    And I click on "Remove from contacts" "link"
110
    And I click on "Remove" "button"
110
    And I click on "Remove" "button"
111
    And I go back in "view-conversation" message drawer
111
    And I go back in "view-conversation" message drawer
112
    And I should see "No contacts" in the "//*[@data-region='empty-message-container']" "xpath_element"
112
    And I should see "No contacts" in the "//*[@data-region='empty-message-container']" "xpath_element"
-
 
113
 
-
 
114
  Scenario: Prevent sending a 'contact request' if user access is not permitted
-
 
115
    Given the following config values are set as admin:
-
 
116
      | messagingallusers | 0 |
-
 
117
    When I am on the "student1" "user > profile" page logged in as admin
-
 
118
    Then I should not see "Add to contacts"
-
 
119
    And I click on "Message" "link"
-
 
120
    And I click on "Conversation actions menu" "button"
-
 
121
    And I should not see "Add to contacts"
-
 
122
    And I click on "User info" "link"
-
 
123
    And I should not see "Add to contacts"
-
 
124
 
-
 
125
  Scenario: Disabling messagingallusers preserves the contact request sent status
-
 
126
    Given I am on the "student1" "user > profile" page logged in as admin
-
 
127
    And I click on "Add to contacts" "link"
-
 
128
    And I should see "Contact request sent"
-
 
129
    And the following config values are set as admin:
-
 
130
      | messagingallusers | 0 |
-
 
131
    When I reload the page
-
 
132
    Then I should see "Contact request sent"