mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
fixed formatting
This commit is contained in:
parent
a25bf6636b
commit
ed6da90d64
1 changed files with 18 additions and 18 deletions
|
@ -18,35 +18,35 @@ describe 'Petlinic' do
|
||||||
|
|
||||||
describe 'when homepage is available' do
|
describe 'when homepage is available' do
|
||||||
it 'should show correct page title' do
|
it 'should show correct page title' do
|
||||||
sleep 3
|
sleep 3
|
||||||
assert @driver.title == 'PetClinic :: a Spring Framework demonstration'
|
assert @driver.title == 'PetClinic :: a Spring Framework demonstration'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'when homepage is available' do
|
describe 'when homepage is available' do
|
||||||
it 'should have Find Owners page' do
|
it 'should have Find Owners page' do
|
||||||
@driver.find_element(:class, 'icon-search').click
|
@driver.find_element(:class, 'icon-search').click
|
||||||
sleep 3
|
sleep 3
|
||||||
h2 = @driver.find_element(:tag_name, 'h2')
|
h2 = @driver.find_element(:tag_name, 'h2')
|
||||||
assert h2.text == 'Find Owners'
|
assert h2.text == 'Find Owners'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'when homepage is available' do
|
describe 'when homepage is available' do
|
||||||
it 'should have veterinarians page' do
|
it 'should have veterinarians page' do
|
||||||
@driver.find_element(:class, 'icon-th-list').click
|
@driver.find_element(:class, 'icon-th-list').click
|
||||||
sleep 3
|
sleep 3
|
||||||
h2 = @driver.find_element(:tag_name, 'h2')
|
h2 = @driver.find_element(:tag_name, 'h2')
|
||||||
assert h2.text == 'Veterinarians'
|
assert h2.text == 'Veterinarians'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'when homepage is available' do
|
describe 'when homepage is available' do
|
||||||
it 'should have search for veterinarian feature' do
|
it 'should have search for veterinarian feature' do
|
||||||
@driver.find_element(:class, 'icon-th-list').click
|
@driver.find_element(:class, 'icon-th-list').click
|
||||||
@driver.find_element(:tag_name, 'input').send_keys('Helen Leary')
|
@driver.find_element(:tag_name, 'input').send_keys('Helen Leary')
|
||||||
result = @driver.find_element(:css, 'td.sorting_1').text
|
result = @driver.find_element(:css, 'td.sorting_1').text
|
||||||
assert result == 'Helen Leary'
|
assert result == 'Helen Leary'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue