fix flaky spec

This commit is contained in:
Juanjo Bazán
2016-12-04 00:23:19 +01:00
parent 9d2bf95172
commit 0d9fb9e8a8

View File

@@ -114,10 +114,11 @@ feature 'Account' do
scenario 'Errors editing credentials' do scenario 'Errors editing credentials' do
visit root_path visit root_path
click_link "My account" click_link 'My account'
expect(current_path).to eq(account_path) expect(current_path).to eq(account_path)
expect(page).to have_link('Change my credentials')
click_link 'Change my credentials' click_link 'Change my credentials'
click_button 'Update' click_button 'Update'