mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 01:27:25 +00:00
test(suite_messaging/tst_adminGroupChat): Created new test case tst_adminGroupChat
Moved admin related scenarios from `tst_groupChat` to the new created one `tst_adminGroupChat`.
This commit is contained in:
parent
cc64e443e4
commit
803bf48e99
@ -1,6 +1,6 @@
|
|||||||
AUT=nim_status_client
|
AUT=nim_status_client
|
||||||
LANGUAGE=Python
|
LANGUAGE=Python
|
||||||
OBJECTMAPSTYLE=script
|
OBJECTMAPSTYLE=script
|
||||||
TEST_CASES=tst_ChatFlow tst_groupChat
|
TEST_CASES=tst_ChatFlow tst_groupChat tst_adminGroupChat
|
||||||
VERSION=3
|
VERSION=3
|
||||||
WRAPPERS=Qt
|
WRAPPERS=Qt
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
Feature: Status Desktop Group Chat
|
||||||
|
|
||||||
|
As a group admin user I want to do some specific actions into the group chat
|
||||||
|
|
||||||
|
The feature start sequence follows the global one (setup on global `bdd_hooks`):
|
||||||
|
|
||||||
|
Background:
|
||||||
|
|
||||||
|
Given the user starts the application with a specific data folder "../../../fixtures/group_chat"
|
||||||
|
When the user "tester123" logs in with password "TesTEr16843/!@00"
|
||||||
|
Then the user lands on the signed in app
|
||||||
|
|
||||||
|
When the user creates a group chat adding users
|
||||||
|
| Athletic |
|
||||||
|
| Nervous |
|
||||||
|
Then the group chat is created
|
||||||
|
|
||||||
|
Scenario: As an admin user I want to change group chat's name
|
||||||
|
|
||||||
|
Given the user opens the edit group chat popup
|
||||||
|
And the user changes the group name to "Fat&Lazy"
|
||||||
|
When the user saves changes
|
||||||
|
Then the chat title is "Fat&Lazy"
|
||||||
|
|
||||||
|
Scenario: As an admin user I want to change group chat's color
|
||||||
|
|
||||||
|
Given the user opens the edit group chat popup
|
||||||
|
And the user changes the group color to "#7CDA00"
|
||||||
|
When the user saves changes
|
||||||
|
Then the chat color is "#7CDA00"
|
||||||
|
|
||||||
|
Scenario: As an admin user I want to change group chat's image
|
||||||
|
|
||||||
|
Given the user opens the edit group chat popup
|
||||||
|
And the user changes the group image
|
||||||
|
When the user saves changes
|
||||||
|
Then the chat image is changed
|
||||||
|
|
||||||
|
When the user leaves current chat
|
||||||
|
Then the chat "Fat&Lazy" does not exist
|
@ -0,0 +1,8 @@
|
|||||||
|
source(findFile('scripts', 'python/bdd.py'))
|
||||||
|
|
||||||
|
setupHooks('../../global_shared/scripts/bdd_hooks.py')
|
||||||
|
collectStepDefinitions('./steps', '../shared/steps/', '../../global_shared/steps/', '../../suite_onboarding/shared/steps/')
|
||||||
|
|
||||||
|
def main():
|
||||||
|
testSettings.throwOnFailure = True
|
||||||
|
runFeatureFile('test.feature')
|
@ -47,27 +47,3 @@ Feature: Status Desktop Group Chat
|
|||||||
| Admin user message sent | Invited user 1 message sent!! | Invited user 2 message sent!! | Athletic&Nervous |
|
| Admin user message sent | Invited user 1 message sent!! | Invited user 2 message sent!! | Athletic&Nervous |
|
||||||
|
|
||||||
# TODO: Add cleanup scenario. Leave, one by one, the chat
|
# TODO: Add cleanup scenario. Leave, one by one, the chat
|
||||||
|
|
||||||
Scenario: As an admin user I want to change group chat's name, color and image
|
|
||||||
When the user creates a group chat adding users
|
|
||||||
| Athletic |
|
|
||||||
| Nervous |
|
|
||||||
Then the group chat is created
|
|
||||||
|
|
||||||
Given the user opens the edit group chat popup
|
|
||||||
And the user changes the group name to "Fat&Lazy"
|
|
||||||
When the user saves changes
|
|
||||||
Then the chat title is "Fat&Lazy"
|
|
||||||
|
|
||||||
Given the user opens the edit group chat popup
|
|
||||||
And the user changes the group color to "#7CDA00"
|
|
||||||
When the user saves changes
|
|
||||||
Then the chat color is "#7CDA00"
|
|
||||||
|
|
||||||
Given the user opens the edit group chat popup
|
|
||||||
And the user changes the group image
|
|
||||||
When the user saves changes
|
|
||||||
Then the chat image is changed
|
|
||||||
|
|
||||||
When the user leaves current chat
|
|
||||||
Then the chat "Fat&Lazy" does not exist
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user