Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SocialNetwork
- Feature: Messenger
- @Login
- Scenario: User logs in successfully
- Given the user is on the login screen
- When they enter a valid username and password
- Then they should be logged in and see their contacts
- @AddFriend
- Scenario: User searches and adds a friend
- Given the user is on the contacts screen
- When they search for a friend by username
- And they find a user with the specified username
- And they add that user as a friend
- Then the user should see the added friend in their contacts
- @StartChat
- Scenario: User selects a friend and starts a chat
- Given the user is on the contacts screen
- When they select a friend from their contacts
- Then they should see the chat screen with the selected friend
- @SendMessage
- Scenario: User sends a message to a friend
- Given the user is in a chat with a friend
- When they type a message and click the send button
- Then the friend should receive the message
- And the message should be displayed in the chat
- @Logout
- Scenario: User logs out
- Given the user is on the contacts screen
- When they click the logout button
- Then they should be logged out and see the login screen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement