From f4ef3636ff1bddf9ffde1617964746b7e8c62639 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Sun, 2 Feb 2020 16:45:25 +0100 Subject: [PATCH] Maintenance: Wait for modal to be ready/disappeared in Twitter system test to make it more stable. --- spec/system/admin/channel/twitter_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/system/admin/channel/twitter_spec.rb b/spec/system/admin/channel/twitter_spec.rb index 611b662d1..5d6ca2bbc 100644 --- a/spec/system/admin/channel/twitter_spec.rb +++ b/spec/system/admin/channel/twitter_spec.rb @@ -6,6 +6,8 @@ RSpec.describe 'Admin Panel > Channels > Twitter', :authenticated, :use_vcr, typ visit '/#channels/twitter' within(:active_content) do find('.js-configApp').click + + modal_ready fill_in 'Twitter Consumer Key *', with: 'some_key', exact: true fill_in 'Twitter Consumer Secret *', with: 'some_secret', exact: true click_on 'Submit' @@ -20,6 +22,8 @@ RSpec.describe 'Admin Panel > Channels > Twitter', :authenticated, :use_vcr, typ visit '/#channels/twitter' within(:active_content) do find('.js-configApp').click + + modal_ready fill_in 'Twitter Consumer Key *', with: 'some_key', exact: true fill_in 'Twitter Consumer Secret *', with: 'some_secret', exact: true fill_in 'Twitter Access Token *', with: 'some_oauth_token', exact: true