forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-64993 core_message: Adding self-conversations to behat tests
- Loading branch information
Amaia Anabitarte
committed
May 5, 2019
1 parent
888a467
commit 86463d5
Showing
5 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,28 +43,32 @@ Feature: Create conversations for course's groups | |
Scenario: Group conversations are restricted to members | ||
Given I log in as "teacher1" | ||
Then I open messaging | ||
And I open the "Group" conversations list | ||
And "Group 1" "group_message" should exist | ||
And "Group 2" "group_message" should exist | ||
And "Group 3" "group_message" should not exist | ||
And I log out | ||
And I log in as "student1" | ||
And I open messaging | ||
And I open the "Group" conversations list | ||
And "Group 1" "group_message" should exist | ||
And "Group 2" "group_message" should not exist | ||
And "Group 3" "group_message" should not exist | ||
|
||
Scenario: View group conversation's participants numbers | ||
Given I log in as "teacher1" | ||
Then I open messaging | ||
And I open the "Group" conversations list | ||
And I select "Group 1" conversation in messaging | ||
And "5 participants" "group_message_header" should exist | ||
And I should see "5 participants" in the "Group 1" "group_message_header" | ||
And I go back in "view-conversation" message drawer | ||
And I select "Group 2" conversation in messaging | ||
And "1 participants" "group_message_header" should exist | ||
And I should see "1 participants" in the "Group 2" "group_message_header" | ||
|
||
Scenario: View group conversation's participants list | ||
Given I log in as "teacher1" | ||
Then I open messaging | ||
And I open the "Group" conversations list | ||
# Check Group 1 participants list. | ||
And I select "Group 1" conversation in messaging | ||
And I open messaging information | ||
|
@@ -90,14 +94,15 @@ Feature: Create conversations for course's groups | |
And I add "Student 4 ([email protected])" user to "Group 1" group members | ||
And I add "Student 4 ([email protected])" user to "Group 2" group members | ||
And I open messaging | ||
And I open the "Group" conversations list | ||
And I select "Group 1" conversation in messaging | ||
And "6 participants" "group_message_header" should exist | ||
And I should see "6 participants" in the "Group 1" "group_message_header" | ||
And I open messaging information | ||
And "Student 4" "group_message_member" should exist | ||
And I go back in "group-info-content-container" message drawer | ||
And I go back in "view-conversation" message drawer | ||
And I select "Group 2" conversation in messaging | ||
And "2 participants" "group_message_header" should exist | ||
And I should see "2 participants" in the "Group 2" "group_message_header" | ||
And I open messaging information | ||
And "No participants" "group_message_member" should not exist | ||
And "Student 4" "group_message_member" should exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters