From a191da9f8487c1dc37ce89c43b0bb54e17339975 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sat, 21 Sep 2019 01:52:01 -0700 Subject: [PATCH] try to prevent failure when fill is too slow --- tests/acceptance/education_tests.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/education_tests.rb b/tests/acceptance/education_tests.rb index 3ab5678d..7b106934 100644 --- a/tests/acceptance/education_tests.rb +++ b/tests/acceptance/education_tests.rb @@ -24,7 +24,11 @@ describe 'signup' do end it 'fails for unwhitelisted tag' do - fill_in_valid + @site = Fabricate.attributes_for(:site) + @class_tag = "mrteacher" # SecureRandom.uuid.gsub('-', '')[0..Tag::NAME_LENGTH_MAX-1] + fill_in 'username', with: @site[:username] + fill_in 'password', with: @site[:password] + fill_in 'email', with: @site[:email] fill_in 'new_tags_string', with: 'nope' click_button 'Create My Site' page.wont_have_content /Let's Get Started/