Skip to content

Commit 659832c

Browse files
committed
fixup! feat(conversation): add federated typing indicator
1 parent 274f46c commit 659832c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

tests/integration/features/federation/chat.feature

+35
Original file line numberDiff line numberDiff line change
@@ -509,3 +509,38 @@ Feature: federation/chat
509509
| actorType | actorId | actorDisplayName | reaction |
510510
| users | participant1 | participant1-displayname | 🚀 |
511511
| federated_users | participant2@{$REMOTE_URL} | participant2-displayname | 🚀 |
512+
513+
514+
Scenario: Typing indicator
515+
Given using server "REMOTE"
516+
And the following "spreed" app config is set
517+
| federation_enabled | yes |
518+
And using server "LOCAL"
519+
And the following "spreed" app config is set
520+
| federation_enabled | yes |
521+
Given user "participant1" creates room "room" (v4)
522+
| roomType | 2 |
523+
| roomName | room |
524+
And user "participant1" adds federated_user "participant2@REMOTE" to room "room" with 200 (v4)
525+
And using server "REMOTE"
526+
And user "participant2" has the following invitations (v1)
527+
| remoteServerUrl | remoteToken | state | inviterCloudId | inviterDisplayName |
528+
| LOCAL | room | 0 | participant1@http://localhost:8080 | participant1-displayname |
529+
And user "participant2" accepts invite to room "room" of server "LOCAL" with 200 (v1)
530+
| id | name | type | remoteServer | remoteToken |
531+
| LOCAL::room | room | 2 | LOCAL | room |
532+
Then user "participant2" is participant of the following rooms (v4)
533+
| id | type |
534+
| LOCAL::room | 2 |
535+
# Join and leave to clear the invite notification
536+
Given user "participant2" joins room "LOCAL::room" with 200 (v4)
537+
Given user "participant2" leaves room "LOCAL::room" with 200 (v4)
538+
When user "participant1" sets setting "typing_privacy" to 1 with 200 (v1)
539+
Then user "participant1" has capability "spreed=>config=>chat=>typing-privacy" set to 1
540+
When user "participant2" sets setting "typing_privacy" to 1 with 200 (v1)
541+
Then user "participant2" has capability "spreed=>config=>chat=>typing-privacy" set to 1
542+
# Public
543+
When user "participant1" sets setting "typing_privacy" to 0 with 200 (v1)
544+
Then user "participant1" has capability "spreed=>config=>chat=>typing-privacy" set to 0
545+
When user "participant2" sets setting "typing_privacy" to 0 with 200 (v1)
546+
Then user "participant2" has capability "spreed=>config=>chat=>typing-privacy" set to 0

0 commit comments

Comments
 (0)