mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
accurate locators for veterinarian filter test
This commit is contained in:
parent
67b75a905b
commit
a25bf6636b
1 changed files with 3 additions and 6 deletions
|
@ -44,12 +44,9 @@ describe 'Petlinic' do
|
||||||
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
|
||||||
search_box = @driver.find_element(:id, 'vets_filter')
|
@driver.find_element(:tag_name, 'input').send_keys('Helen Leary')
|
||||||
textBox = search_box.find_element(:tag_name, 'input')
|
result = @driver.find_element(:css, 'td.sorting_1').text
|
||||||
textBox.send_keys('Helen Leary')
|
assert result == 'Helen Leary'
|
||||||
vets = @driver.find_element(:id, 'vets').text
|
|
||||||
assert vets.split("\n")[1] == 'Helen Leary radiology'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue