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:
Javi Martín
2025-03-14 22:24:44 +01:00
parent 1593a150e7
commit 533d2198ee
17 changed files with 26 additions and 26 deletions

View File

@@ -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"