summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-05-04 17:05:24 -0300
committerVitor Mattos <vitor@php.rio>2023-05-05 05:18:58 -0300
commit3c62e4a8e35a92bdd14b433193c4ca4f91a18cb6 (patch)
tree660fd312a7239aa451d90be78d96f6854aec4807 /tests
parent047ed73a4600a3628198ee7c95d99da9ba982385 (diff)
Add unit tests and implement pending methods
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/chat-2/typing-privacy.feature11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration/features/chat-2/typing-privacy.feature b/tests/integration/features/chat-2/typing-privacy.feature
new file mode 100644
index 000000000..70a7e54ee
--- /dev/null
+++ b/tests/integration/features/chat-2/typing-privacy.feature
@@ -0,0 +1,11 @@
+Feature: chat-2/typing-privacy
+ Background:
+ Given user "participant1" exists
+ Scenario: User toggles the typing privacy
+ # Hide
+ When user "participant1" sets setting "typing_privacy" to "1" with 200 (v1)
+ Then user "participant1" has capability "spreed=>config=>chat=>typing-privacy" set to "1"
+
+ # Visible
+ When user "participant1" sets setting "typing_privacy" to "0" with 200 (v1)
+ Then user "participant1" has capability "spreed=>config=>chat=>typing-privacy" set to "0"