Advertisement
selebry

das

Oct 12th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. @SocialNetwork
  2. Feature: Messenger
  3.  
  4. @Login
  5. Scenario: User logs in successfully
  6. Given the user is on the login screen
  7. When they enter a valid username and password
  8. Then they should be logged in and see their contacts
  9.  
  10. @AddFriend
  11. Scenario: User searches and adds a friend
  12. Given the user is on the contacts screen
  13. When they search for a friend by username
  14. And they find a user with the specified username
  15. And they add that user as a friend
  16. Then the user should see the added friend in their contacts
  17.  
  18. @StartChat
  19. Scenario: User selects a friend and starts a chat
  20. Given the user is on the contacts screen
  21. When they select a friend from their contacts
  22. Then they should see the chat screen with the selected friend
  23.  
  24. @SendMessage
  25. Scenario: User sends a message to a friend
  26. Given the user is in a chat with a friend
  27. When they type a message and click the send button
  28. Then the friend should receive the message
  29. And the message should be displayed in the chat
  30.  
  31. @Logout
  32. Scenario: User logs out
  33. Given the user is on the contacts screen
  34. When they click the logout button
  35. Then they should be logged out and see the login screen
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement