spec/shared_selenium_node.rb in capybara-3.31.0 vs spec/shared_selenium_node.rb in capybara-3.32.0
- old
+ new
@@ -25,9 +25,17 @@
session.find(:css, '#address1_city').send_keys('ocean', [:shift, :space, 'side'])
expect(session.find(:css, '#address1_city').value).to eq 'ocean SIDE'
end
end
+ describe '#[]' do
+ it 'should work for spellcheck' do
+ session.visit('/with_html')
+ expect(session.find('//input[@spellcheck="TRUE"]')[:spellcheck]).to eq('true')
+ expect(session.find('//input[@spellcheck="FALSE"]')[:spellcheck]).to eq('false')
+ end
+ end
+
describe '#visible?' do
let(:bridge) do
session.driver.browser.send(:bridge)
end