Skip to content

Acceptance Tests

Humayra98 edited this page Apr 8, 2021 · 21 revisions

User Story: Create User profile #3

Scenario: User registers for an account with valid data

  • Given I’m in the role of guest user
  • When I open the Register page
  • Then the system shows me the Create an account form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with a valid username
  • And I fill in the “Password” field with my password
  • And I click the “press me” button
  • Then the system should create an account/profile for me
  • And the system shows the home page of Gamersnet indicating a successful login

User Story: Profile Avatar #40

Scenario: User logs in to their account to change avatar

  • Given I’m in the role of a registered user
  • When I open the Login page
  • Then the system shows me the Login to Gamersnet form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with my registered Gamersnet username
  • And I fill in the “Password” field with my password
  • And the system shows the home page of Gamersnet indicating a successful login
  • When I click on Profile, and then on edit profile
  • The system shows the component to select an image which should be 256 X 256 pixels or smaller
  • And I click the “select image” button to select an image from my gallery
  • And then click on upload to change the picture to the selected one
  • then the system shows the updated avatar in that component itself

User Story: Enable password change #35

Scenario: Logged in user can change their password

  • Given I’m in the role of a logged-in user
  • When I open the Login page
  • Then the system shows me the Login to Gamersnet form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with my registered Gamersnet username
  • And I fill in the “Password” field with my password
  • And the system shows the home page of Gamersnet indicating a successful login
  • When I click on Profile, and then on edit profile
  • The system shows the component to change the password form containing “Old Password”, “New Password” fields which are required
  • When I fill in the “Old Password” field with my old password
  • And I fill in the “New Password” field with my new password
  • And I click the “change password” button
  • And the system shows a successful change in the password if your passwords are valid and correct
  • To confirm, click on Logout and then log in using the new password
  • the system shows the home page of Gamersnet indicating a successful change in password

User Story: Account sign in #32

Scenario: User logs in to their account with their credentials ( Username: JayDemo, Password: demo )

  • Given I’m in the role of a registered user
  • When I open the Login page
  • Then the system shows me the Login to Gamersnet form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with my registered Gamersnet username
  • And I fill in the “Password” field with my password
  • And the system shows the home page of Gamersnet indicating a successful login

User Story: Profile Game Ranking #49

Scenario: As a user, I want to be able to manage my game specific ranks

  • Login as a user.
  • Go to profile
  • Profile shows my game ranks(if any) below my username
  • If there is no game ranks we can click "edit profile"
  • Add/edit game rank from edit page
  • save changes and return to profile and refresh page
  • the profile displays game ranks

Scenario: As a user, I want to display my site achievements

Given user/guest viewing a profile,

  • User profiles displays the user's achievements in the site based on how long the user has been using the site, how active the user has been and ratings from other users.
  • Achievements are represented by small icons beside the avatar.
  • user can see the achievement descriptions if they hover over the icons

User Story: Edit profile info #57

Scenario: As a user, I want to be able to edit my profile info

Given user is logged in,

  • User profile page has an edit option that directs to an edit page
  • User can change profile info and save changes

Feature: Post Management

User Story: Post Creation #9

Scenario: As a user, I want to be able to create a post searching for players. Given I’m in the role of a registered user to create a post

  • When I open the Login page
  • Then the system shows me the Login to Gamersnet form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with my registered Gamersnet username
  • And I fill in the “Password” field with my password
  • And the system shows the home page of Gamersnet indicating a successful login
  • When I click on Post
  • Then the system shows me the Create a Post form containing “Add Game Name”, “Description”, “num of Players”, “location”, "duration", "select ad date" fields which are required
  • When I fill in all the fields with valid data
  • Then I click Post to create a post
  • And the system redirects you to the home page of Gamersnet, which further shows the post that you created

User Story: Post Editing #23

Scenario: As a user, I want to be able to edit any of my posts. Given I’m in the role of a registered user to edit a post

  • When I open the Login page
  • Then the system shows me the Login to Gamersnet form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with my registered Gamersnet username
  • And I fill in the “Password” field with my password
  • And the system shows the home page of Gamersnet indicating a successful login
  • When I click on Profile,
  • Then the system shows me the profile and list of posts you've created, each post contains an edit button
  • Then I click edit on some post
  • Then the system shows me the Edit Post form containing “Description”, “num of Players”, “location”, "duration", "select a date" fields to edit
  • When I update the fields and click on submit
  • System shows a list of posts updating the field of the post you pressed the edit button on

User Story: Post Deletion #20

Scenario: As a user, I want to be able to delete a post. Given user is logged in,

  • users can view their own posts from their profile.
  • user can delete posts
  • Users should only be able to delete posts that exist
  • Users should not be able to delete other user's posts

User Story: Game based search #13

Scenario: As a user, I want to be able to search posts by game name.

Given user/guest viewing posts from home page,

  • users search for posts related to particular games by searching by the game name from the search bar.

User Story: Filter search #20

Scenario: As a user, I want to be able to search posts by keywords. Given user/guest viewing posts from home page,

  • users search for posts containing the searched words. for example: searching Looking Players will show posts containing either or both words "Looking" and "Players"
  • users can exclude words from their search results. for example: searching -Looking will show posts that doesn't contain "Looking"
  • users can search for exact phrases putting "" around the phrase.

Scenario: As a user, I want to be able to filter posts for games scheduled between specific date range, number of players. Given user/guest viewing posts from home page,

  • At first users need to search by a keyword which takes them to a secondary search page.
  • here they can filter posts by date range and number of players

Feature: Rate a user

User story: Rate Players #25

Scenario: As a user, I want to be able to rate the players I played with based on kindness, punctuality, how accurate their suggested skill level is.

  • Users should not be able to rate other users from my account
  • users can go to another user profile and add their rating
  • they can view the average ratings on user profiles

Scenario: As a user, I want to be able to comment on profiles

  • Users should only be able to comment on other profiles from their account.
  • Users should only be able to comment on existing users' profiles.
  • Users should only be able to comment if they are logged in.

User story: Instant Messaging #45

Scenario: User logs in to their account with their credentials ( [Username: JayDemo, Password: demo], [Username2: LucasDemo, Password2: demo] ) chat with your friends

  • Given I’m in the role of a registered user to chat with friends
  • When I open the Login page
  • Then the system shows me the Login to Gamersnet form containing “Username”, “Password” fields which are required
  • When I fill in the “Username” field with my registered Gamersnet username
  • And I fill in the “Password” field with my password
  • And the system shows the home page of Gamersnet including Chats with your friends with their avatars
  • When I click on any username within chats,
  • the system shows the list of messages between you and the username you clicked on
  • and the system also shows the "type your message" field and send button
  • Open the Login page of Gamersnet on a different device (if not on localhost) or incognito tab(if using localhost)
  • When I fill in the “Username” field with my registered Gamersnet username2
  • And I fill in the “Password” field with my password2
  • Once you have both the tabs open,
  • and when you fill a message in both or either tab's "type your message" field,
  • when clicking on send
  • the system shows the message being sent instantly to the other user and getting updated in your chat window
  • When I click on the username in the chat window,
  • The system redirects me to the profile of the user