Use refresh instead of visiting the current page
This way it's more obvious what's going on. Note that, in this case, the expectations were **not** true before visiting the page, so we aren't fixing a flaky test.
This commit is contained in:
@@ -86,7 +86,7 @@ describe "Users" do
|
||||
|
||||
expect(page).to have_content "User account deleted."
|
||||
|
||||
visit management_document_verifications_path
|
||||
refresh
|
||||
fill_in "document_verification_document_number", with: "12345678Z"
|
||||
click_button "Check document"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user