1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

test should rely on value, not text for textarea

This commit is contained in:
Thomas Walpole 2018-03-13 13:13:38 -07:00
parent 5c8b0983b3
commit 353ef5a121

View file

@ -7,7 +7,7 @@ Capybara::SpecHelper.spec '#find_field' do
it "should find any field" do
expect(@session.find_field('Dog').value).to eq('dog')
expect(@session.find_field('form_description').text).to eq('Descriptive text goes here')
expect(@session.find_field('form_description').value).to eq('Descriptive text goes here')
expect(@session.find_field('Region')[:name]).to eq('form[region]')
expect(@session.find_field('With Asterisk*')).to be
end