As a user,
When I visit '/',
And I enter valid a city, state in the top search bar,
I am taken to that city's result page,
And I see the population,
And I also see the cost of living,
And I also see the cost of vehicle registration,
And I also see crime data,
And I also see a walk-ability score,
And I also see a bike-ability score
As a user,
When I visit '/',
And I click on 'Log Out',
I should be redirected to the root,
And I should see 'Logged Out',
And I should see 'Sign In',
And I should not see 'Dashboard'
And I should not see 'Log Out'
As an unregistered guest user,
When I visit '/',
And I click on 'Sign Up',
And I enter my first name,
And I enter my last name,
And I enter my email,
And I enter my password twice,
And I click 'Create Account',
Then I am logged in,
And I am redirected to my user dashboard,
And I see 'Welcome 'First Name' 'Last Name'
And I see 'Log Out'
And I do not see 'Sign Up'
When a user searches for cities, and the results are displayed, make a note by cities the current user has already favorited but as deactivated in the past. This is simply to let them know they have already looked at this city, even if they may wish to add it to their favorites once again.
As a registered guest,
When I visit '/',
And I click on 'Sign In',
I see a form for 'email' and 'password',
And I enter my information,
And I click 'Sign In',
Then I am taken to my user dashboard,
And I see 'Welcome 'First Name' 'Last Name',
And I do not see 'Sign In',
And I do see 'Log Out'
As a user,
When I search for a city,
I see a list of cities,
And I click on the one I want to see,
And I takes me to the city show page,
And shows me the city name,
And shows me the city population
As a registered user,
When I visit '/',
And I search for a city, state at the top search bar,
And I am taken to that city page,
I see a button 'Add To Favorites',
When I click that button,
It adds that city to my favorites,
And I see the button change to 'Remove From Favorites'
As a registered user,
When I visit '/dashboard',
And I click on a city in my favorites,
I am taken to that city's page,
And I click 'Remove From Favorites',
And the city is removed from my favorites,
I see the button change to 'Add To Favorites'