try to make capybara wait for a page load to continue running

This commit is contained in:
Kyle Drake 2019-01-20 00:35:50 -08:00
parent 2eab561a28
commit 1fa8aa3a74

View file

@ -9,6 +9,7 @@ describe 'signup' do
def fill_in_valid
@site = Fabricate.attributes_for(:site)
page.must_have_content 'Sign up for free'
fill_in 'username', with: @site[:username]
fill_in 'password', with: @site[:password]
fill_in 'email', with: @site[:email]