Added lodging to splash view
This commit is contained in:
parent
4cc039b358
commit
c1063645da
13 changed files with 53 additions and 5 deletions
|
|
@ -25,7 +25,9 @@ feature Lodging do
|
|||
find('div.nested-fields:nth-of-type(1) div:nth-of-type(2) textarea').
|
||||
set('Lorem Ipsum Dolor')
|
||||
attach_file 'Photo', path
|
||||
|
||||
page.
|
||||
find('div.nested-fields:nth-of-type(1) div:nth-of-type(4) input').
|
||||
set('http://www.example.com')
|
||||
click_button 'Update Venue'
|
||||
|
||||
# Validations
|
||||
|
|
@ -34,6 +36,8 @@ feature Lodging do
|
|||
value).to eq('Example Hotel')
|
||||
expect(find('div.nested-fields:nth-of-type(1) div:nth-of-type(2) textarea').
|
||||
value).to eq('Lorem Ipsum Dolor')
|
||||
expect(find('div.nested-fields:nth-of-type(1) div:nth-of-type(4) input').
|
||||
value).to eq('http://www.example.com')
|
||||
expect(page).to have_selector("img[src*='rails.png']")
|
||||
|
||||
# Remove room
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue