From 1fa8aa3a74a30bca22262370466f1b35ed711389 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 20 Jan 2019 00:35:50 -0800 Subject: [PATCH] try to make capybara wait for a page load to continue running --- tests/acceptance/signup_tests.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/acceptance/signup_tests.rb b/tests/acceptance/signup_tests.rb index a42b93db..154ff899 100644 --- a/tests/acceptance/signup_tests.rb +++ b/tests/acceptance/signup_tests.rb @@ -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]