Skip to content

Instantly share code, notes, and snippets.

@gary
Forked from colinrymer/gist:5798469
Created June 17, 2013 17:43
Show Gist options
  • Save gary/5798683 to your computer and use it in GitHub Desktop.
Save gary/5798683 to your computer and use it in GitHub Desktop.

Product management has come up with the idea of allowing website users to leave reviews and ratings for listings. This feedback will be entered similar to how leads are submitted, but the user must enter the following information:

  • name
  • email address
  • phone number
  • rating from 1 to 5
  • optional review

In addition to the above information, a CAPTCHA presenting three different apartment complexes (only one of which is correct) is used in conjunction with the user’s name and phone number to determine whether or not the user actually lived at the listing. After validating and verifying the information, the user gets redirected to a thank you page. After a review is successfully submitted, it will show up as the first entry in the reviews for the listing. Pre-existing “certified resident” reviews will be integrated along with reviews that are submitted through the site. On the search results page, users can sort on rating type or filter on review type and rating. A link on each listing will take the user to the review area, which is presented as the sixth tab on the listing’s details page.

@gary
Copy link
Author

gary commented Jun 17, 2013

Feature: User reviews for listings
  In order to provide other people with unbiased reviews on apartments
  As an apartment dweller
  I want to have a way to leave feedback on AG for the apartement I live in

  Scenario: Submit feedback without a review and identify my apartment
    Given I am on the feedback page for a listing
    When I enter valid personal information
    And I do not enter a review
    And I correctly identify the apartment I want to review
    Then I should see a thank you page

  Scenario: Troll an apartment
    Given I am on the feedback page for a listing
    When enter valid personal information
    And I enter a nasty, opinionated review
    And I fail to identify the apartment I want to review
    Then I should be sent back to the listings
    And I should see an error message    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment