From 859460e7f11682ff1155812729842badb7861119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Fri, 8 Mar 2019 15:15:55 +0100 Subject: [PATCH] Fix flickering submit valid proposal test The `find` was added to try to fix the flickering test: https://github.com/openSUSE/osem/commit/ac3337bd1ed93462ee6d8cae5651fe8d633305d8 The reason why this fail is that the Javascript is not loaded yet. `find` and `fill_in` have the same `default_max_wait_time`. Because of that adding `find` doesn't solve the problem. Increase wait time instead. Fixes https://github.com/openSUSE/osem/issues/2356 --- spec/features/proposals_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 0a9ea422..3a82f455 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -121,8 +121,7 @@ feature Event do fill_in 'event_abstract', with: 'Lorem ipsum abstract' click_link 'Do you require something special?' - page.find('#event_description') - fill_in 'event_description', with: 'Lorem ipsum description' + fill_in 'event_description', with: 'Lorem ipsum description', wait: 60 click_button 'Create Proposal' page.find('#flash')