Commit 89df29e0 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Use click_link

parent 5d5df26a
......@@ -15,7 +15,7 @@ feature 'Toggle Whitespace Changes', js: true, feature: true do
describe 'clicking "Hide whitespace changes" button' do
it 'should hide whitespace changes' do
find('a', text: "Hide whitespace changes").click
click_link "Hide whitespace changes"
expect(page).to have_content "Show whitespace changes"
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment