fill_form not waiting for page to load
When running the user flow spec (crystal spec spec/flows/user_spec.cr:16) I would get a failure. The flow tests that a user can log in, go to their account page and reset their password. However, the page appears to be loading too fast for selenium to be able to fill the password field. It's able to fill the password_confirmation however. The result is form errors when trying to change the password saying that password is required, is too short, and that password_confirmation must match.
Putting a sleep(0.1) before filling the field (current committed) causes the test to pass, so I assume this is a race condition that we need to have flow wait to resolve.
https://github.com/edwardloveall/lucky_bits/commit/b71f879e55b34354ebf801aca7f0a3b459e3771d