features/can_send_messages.feature
# Pivotal Tracker ID: 151974221
# Pivotal Tracker ID: 151974213
Feature: Users can send each other messages
As a User
So that I can communicate with other users
I want to be able to send them messages
Background: user accounts are in the database
Given the following accounts exist:
| email | password | home_street_address | home_city | home_state | home_zip_code | house_description | first_name | last_name | credit_card_number | expiration_date | cvv | searchable | price |
| aladdin@agrabah.com | 12341001 | 3845 Market Street | Oakland | CA | 94608 | Big and extravagant | Ali | Ababwa | 1234567812345678 | 25-Nov-2300 | 101 | true | 16 |
| terminator@future.com | password | 2575 Telegraph Avenue | Berkeley | CA | 94704 | Compact | Terminator | T-800 | 2222222222222222 | 26-Oct-2017 | 222 | true | 200 |
And I log in with email "terminator@future.com" and password "password"
And I am on the home page
Scenario: User can send each other messages through the Reserve button
Given I fill in "search-bar" with "Oakland"
And I press "Search"
And I click a post with id "link_3845 Market Street"
And I should see "3845 Market Street"
And I follow "Reserve"
And I follow "View Requests"
Then I should see "Mailbox"
Scenario: User can make request via the chat
Given I fill in "search-bar" with "Oakland"
And I press "Search"
And I click a post with id "link_3845 Market Street"
And I follow "Reserve"
And I follow "View Requests"
When I follow "Ali"
Then I should see "I would like to reserve your place."