-
Notifications
You must be signed in to change notification settings - Fork 0
Scenarios
Given the visitor sees the main page, they will see a navbar with links to “Main”, “About”, “Contact”, “Sign Up”, “Sign In” pages:
And the visitor will see a brief description of the website in the header section.
And the visitor will see various points on a google map of Seattle which represent police/ fire responses within the last week.
And the visitor will see the most recent tweets from @SeattlePD and @SeattleFire.
And the visitor will see source of police/fire data in the footer section.
When the visitor hovers the cursor over any of the points on the map
Then the site responds by providing a “box” of data above the icon with the address, brief description, and time/date of incident.
When the visitor clicks on any of the navbar links, they will be taken to the respective pages.
Given the visitor visits the about page, they will see a navbar with links to “Main”, “About”, “Contact”, “Sign Up”, “Sign In” pages.
And the visitor will view a paragraph providing more detailed information about the source of the data, the purpose of the site and more about the features.
Given the visitor visits the contact page, they will see a navbar with links to “Main”, “About”, “Contact”, “Sign Up”, “Sign In” pages.
And will see a sentence stating, “Have a question, comment or suggestion? Contact us!”
And will see a form which has text fields for name, email and question/comment/ suggestion.
And will see source of police/fire data in the footer section.
When the user clicks on any link on the navbar takes the visitor the respective page.
Given the visitor visits the sign in page, they will see a navbar with links to “Main”, “About”, “Contact”, “Sign Up”, “Sign In” pages.
And they will see a statement. “By subscribing, you may choose to stay informed about incidents at your chosen address.”
And they will see text fields labelled first name, last name, username and password, password, password confirmation, email address, cell number, address [street (2 lines), city, state and zip code] AND submit button.
And they will see radio button with the choice of incidents within 1, 2, or 5 miles of address.
And they will see “radio buttons” for their choice of fire, all police, assault, missing persons, theft, etc.
When subscriber clicks on the submit button and successfully subscribes,
Then the site responds by displaying message, “Thank you for subscribing! You will be informed according to your selections. If you would like to change your request for information, log in again and make necessary changes.”
When the subscriber clicks on the button and unsuccessfully subscribes,
Then the site responds by displaying appropriate message such as
name can’t be blank,
passwords can’t be blank,
password and password confirmation don’t match,
choices missing,
distance missing.
address missing.
When the user clicks on any link on the navbar takes the visitor the respective page.
Given the visitor visits the sign in page, they will see a navbar with links to “Main”, “About”, “Contact”, “Sign Up”, “Sign In” pages.
And they will see 2 text fields labelled username and password.
When the subscriber successfully logs in,
Then the subscriber will see their information displayed including username, email address, cell number, address (street, city, state and zip code) and notification preferences (fire/crime, and distance from home).
When the subscriber clicks on the edit button, the form sign-in form will reappear and be populated with information subscriber entered.
When the subscriber clicks submit and successfully updates,
Then the site responds by displaying message, “Your information has been updated!”
When the subscriber clicks on the button and unsuccessfully subscribes,
Then the site responds by displaying appropriate message such as name can’t be blank, passwords can’t be blank, password and password confirmation don’t match, choices missing, distance missing, address missing.