Fix intermittent assert_patched failure

This commit is contained in:
Jamil Bou Kheir
2021-07-23 16:44:40 -07:00
parent 4faf10c285
commit 96bcd7b672

View File

@@ -65,6 +65,9 @@ defmodule FzHttpWeb.AccountLive.ShowTest do
|> element("button.delete")
|> render_click()
# Sometimes assert_patched fails without this :-(
Process.sleep(100)
assert_patched(view, Routes.account_show_path(conn, :show))
end
end