2022-06-07 15:19:52 +00:00
|
|
|
# This is a sample .feature file
|
|
|
|
# Squish feature files use the Gherkin language for describing features, a short example
|
|
|
|
# is given below. You can find a more extensive introduction to the Gherkin format at
|
|
|
|
# https://cucumber.io/docs/gherkin/reference/
|
|
|
|
Feature: Status Desktop Chat
|
|
|
|
|
|
|
|
As a user I want to join a room and chat.
|
|
|
|
|
|
|
|
The following scenarios cover basic chat flows.
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given A first time user lands on the status desktop and generates new key
|
2022-06-16 01:46:45 +00:00
|
|
|
When user signs up with username tester123 and password TesTEr16843/!@00
|
2022-06-07 15:19:52 +00:00
|
|
|
Then the user lands on the signed in app
|
|
|
|
|
|
|
|
Scenario: User joins a room and chats
|
|
|
|
When user joins chat room test
|
2022-06-07 23:37:11 +00:00
|
|
|
Then user is able to send chat message
|
2022-06-07 23:47:19 +00:00
|
|
|
| message |
|
|
|
|
| Hello |
|
|
|
|
| How are you |
|
|
|
|
| I am from status |
|
|
|
|
| tell me how you do? |
|
2022-07-28 18:58:19 +00:00
|
|
|
|
|
|
|
Scenario: User can reply to their own message
|
|
|
|
When user joins chat room test
|
|
|
|
Then user is able to send chat message
|
|
|
|
| message |
|
|
|
|
| Reply to this |
|
|
|
|
Then the user can reply to the message at index 0 with "This is a reply"
|
|
|
|
|
|
|
|
# TODO This test has a chance to fail since it relies on the mailserver. Until we host a local mailserver for the tests, this test is at risk
|
|
|
|
Scenario: User can reply to another user's message
|
|
|
|
When user joins chat room test
|
|
|
|
Then the user can reply to the message at index 0 with "This is a reply to another user"
|