Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As any user I want to be able to filter a game's reviews by their rating so that I can search positive and negative opinions of a game in an easier way #4

Open
dsantosferreira opened this issue Mar 3, 2023 · 0 comments
Labels
user story Defines something a user wants in the app

Comments

@dsantosferreira
Copy link
Collaborator

dsantosferreira commented Mar 3, 2023

Description

The user can filter and sort the shown reviews by tapping a filter button. He can filter the reviews by rating, choosing between 5 options, each one corresponding to a certain rating, and sort them by rating, number of likes and number of dislikes in ascending and descending order.

Acceptance tests

Feature: filter reviews by their rating
  Any user should be able to filter the reviews of a game's page
  by the desired rating.
 
  Background:
    Given the game "Hollow Knight" that has two 5 of rating reviews, both with 10 likes and no dislikes, and one 1 of rating review with 10 dislikes and no likes.
  
  Scenario: I tap the filter by review dropdown
    Given that I am in "Hollow Knight"'s game page
    When I click the filter button
    Then I should see 5 options to select each corresponding to a possible rating (1-5)

  Scenario: I choose the 5 of rating option filter on the dropdown
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I select the 5 of rating option
    Then I should only see 2 reviews with 5 of rating

  Scenario: I choose the 1 of rating option filter on the dropdown
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I select the 1 of rating option
    Then I should only see 1 review with 1 of rating
 
  Scenario: I choose the 3 of rating filter option on the dropdown
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I select the 3 of rating option
    Then I should see the message "There are no reviews for now" on the bottom of the page
 
  Scenario: I choose the rating sorting option by ascending order
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I tap the sort by rating ascending order option
    Then I should firstly see the two 1 of rating review and then the two 5 of rating reviews

  Scenario: I choose the rating sorting option by descending order
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I tap the sort by rating descending order option
    Then I should firstly see the two 5 of rating reviews and then the 1 of rating review

  Scenario: I choose the number of dislikes option by ascending order
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I tap the sort by number of dislikes ascending order option
    Then I should firstly see the the 5 of rating reviews and then the 1 of rating review

 Scenario: I choose the number of dislikes option by descending order
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I tap the sort by number of dislikes descending order option
    Then I should firstly see the the 1 of rating review and then the two 5 of rating reviews

  Scenario: I choose the number of likes option by descending order
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I tap the sort by number of likes descending order option
    Then I should firstly see the the 5 of rating reviews and then the 1 of rating review

  Scenario: I choose the number of likes option by ascending order
    Given that I am in "Hollow Knight"'s game page
    And I tapped the filter button
    When I tap the sort by number of likes ascending order option
    Then I should firstly see the the 1 of rating review and then the two 5 of rating reviews

Mockups

issue4
When the user reaches the reviews section at the game page, he will see an icon that will pop up a dropdown that gives the user the option to filter and sort the shown reviews.
@dsantosferreira dsantosferreira added the user story Defines something a user wants in the app label Mar 3, 2023
@dsantosferreira dsantosferreira changed the title As any user I want to be able to filter the reviews by their rating so that I can search positive and negative opinions of a game in an easier way As any user I want to be able to filter a game's reviews by their rating so that I can search positive and negative opinions of a game in an easier way Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user story Defines something a user wants in the app
Projects
None yet
Development

No branches or pull requests

1 participant