From ebc32547244273749643cdb17e4155317f8daf90 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 31 Mar 2015 13:28:00 -0700 Subject: [PATCH] Add sleep to prevent missing element issue --- tests/acceptance/signup_tests.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/signup_tests.rb b/tests/acceptance/signup_tests.rb index 11192a07..6e2a6719 100644 --- a/tests/acceptance/signup_tests.rb +++ b/tests/acceptance/signup_tests.rb @@ -58,6 +58,7 @@ describe 'signup' do page.must_have_content 'Welcome to Neocities' Capybara.reset_sessions! visit_signup + sleep 0.3 fill_in 'username', with: @site[:username] fill_in 'password', with: @site[:password] click_signup_button @@ -183,4 +184,4 @@ puts "$$$$$$$$$$$$$$$$$$$$$$ TODO FIX TAGS TESTS" site.tags.first.name.must_equal 'one' end =end -end \ No newline at end of file +end