Skip to content

Commit

Permalink
Wait for server connection after reloading page
Browse files Browse the repository at this point in the history
  • Loading branch information
bartblast committed Oct 29, 2024
1 parent 6956988 commit 1c0867a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/features/test/support/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ defmodule HologramFeatureTests.Helpers do
end

def reload(session) do
Browser.execute_script(session, "document.location.reload();")
session
|> Browser.execute_script("document.location.reload();")
|> wait_for_server_connection()
end

def visit(session, page_module, params \\ []) do
Expand Down

0 comments on commit 1c0867a

Please sign in to comment.