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 a registered user I want to be able to edit my review of a game so that if my opinion about a game changes, I can change my review. #10

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

Comments

@dsantosferreira
Copy link
Collaborator

dsantosferreira commented Mar 4, 2023

Description

If the registered user wants to edit its review he should tap the edit button in its review. That will show the form used to submit a review with its fields filled with the information of the user's review. After editing what they wanted, clicking the submit button will update the review.

Acceptance tests

Feature: Edit a review
  Any registered user is able to edit any of their reviews by clicking
  on the edit button in its review. Doing so will let the user edit the review's
  rating and message. Tapping the submit button will update the review.

  Background:
    Given there is a page of the game "Hollow Knight"
    And that I am a registered user
    And that I wrote a review on the "Hollow Knight"'s page with rating 5 and message "Nice"
    And the registered user SuperGamer wrote a review on the "Hollow Knight"'s page
    And I am in the "Hollow Knight"'s page

  Scenario: I edit my review's message
    Given that I scrolled to my review
    When I tap the edit button
    And I changed the message to "Very nice"
    And I tapped the submit button
    Then my review should update with the rating 5
    And with the message "Very nice"

  Scenario: I edit my review's rating
    Given that I scrolled to my review
    When I tap the edit button
    And I changed the rating to 10
    And I tapped the submit button
    Then my review should update with the rating 10
    And with the message "Nice"

  Scenario: I try to edit another user's review
    Given that i scrolled to the SuperGamer's review
    Then I can't see an edit button in its review

Mockup

ezgif com-video-to-gif(11)

@dsantosferreira dsantosferreira added the user story Defines something a user wants in the app label Mar 4, 2023
@ZeAntonioM ZeAntonioM changed the title As a registered user I want to be able to edit my review of a game in case my opinion changes over time As a registered user I want to be able to edit my review of a game so that if my opinion about a game changes, I can change my review. May 24, 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