Focus the search of the button

This commit is contained in:
Vicente Mendoza
2018-02-06 12:22:46 +01:00
parent 31cece096b
commit 910d49d18c

View File

@@ -51,7 +51,10 @@ feature 'Residence' do
click_link "Validate document"
end
click_button 'Validate document'
within("#new_residence") do
click_button "Validate document"
end
expect(page).to have_content(/\d errors? prevented the verification of this document/)
end