Browse Source
fix(dashboard): Hide archived conversations from dashboard unless mentioned
fix(dashboard): Hide archived conversations from dashboard unless mentioned
Signed-off-by: Joas Schilling <coding@schilljs.com>pull/14297/head
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
4 changed files with 60 additions and 27 deletions
-
22lib/Dashboard/TalkWidget.php
-
23tests/integration/features/bootstrap/FeatureContext.php
-
28tests/integration/features/conversation-1/archive.feature
-
14tests/integration/features/integration/dashboard.feature
@ -0,0 +1,28 @@ |
|||
Feature: conversation-1/archive |
|||
Background: |
|||
Given user "participant1" exists |
|||
Given user "participant2" exists |
|||
|
|||
Scenario: Archiving and unarchiving |
|||
Given user "participant1" creates room "group room" (v4) |
|||
| roomType | 3 | |
|||
| roomName | room | |
|||
When user "participant1" creates room "one-to-one room" (v4) |
|||
| roomType | 1 | |
|||
| invite | participant2 | |
|||
And user "participant1" is participant of the following rooms (v4) |
|||
| id | type | participantType | isArchived | |
|||
| group room | 3 | 1 | 0 | |
|||
| one-to-one room | 1 | 1 | 0 | |
|||
And user "participant1" archives room "one-to-one room" with 200 (v4) |
|||
And user "participant1" archives room "group room" with 200 (v4) |
|||
And user "participant1" is participant of the following rooms (v4) |
|||
| id | type | participantType | isArchived | |
|||
| group room | 3 | 1 | 1 | |
|||
| one-to-one room | 1 | 1 | 1 | |
|||
And user "participant1" unarchives room "one-to-one room" with 200 (v4) |
|||
And user "participant1" unarchives room "group room" with 200 (v4) |
|||
And user "participant1" is participant of the following rooms (v4) |
|||
| id | type | participantType | isArchived | |
|||
| group room | 3 | 1 | 0 | |
|||
| one-to-one room | 1 | 1 | 0 | |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue