Maintenance: Wait for modal to be ready/disappeared in Twitter system test to make it more stable.

This commit is contained in:
Thorsten Eckel 2020-02-02 16:45:25 +01:00
parent 201027d23c
commit f4ef3636ff

View file

@ -6,6 +6,8 @@ RSpec.describe 'Admin Panel > Channels > Twitter', :authenticated, :use_vcr, typ
visit '/#channels/twitter' visit '/#channels/twitter'
within(:active_content) do within(:active_content) do
find('.js-configApp').click find('.js-configApp').click
modal_ready
fill_in 'Twitter Consumer Key *', with: 'some_key', exact: true fill_in 'Twitter Consumer Key *', with: 'some_key', exact: true
fill_in 'Twitter Consumer Secret *', with: 'some_secret', exact: true fill_in 'Twitter Consumer Secret *', with: 'some_secret', exact: true
click_on 'Submit' click_on 'Submit'
@ -20,6 +22,8 @@ RSpec.describe 'Admin Panel > Channels > Twitter', :authenticated, :use_vcr, typ
visit '/#channels/twitter' visit '/#channels/twitter'
within(:active_content) do within(:active_content) do
find('.js-configApp').click find('.js-configApp').click
modal_ready
fill_in 'Twitter Consumer Key *', with: 'some_key', exact: true fill_in 'Twitter Consumer Key *', with: 'some_key', exact: true
fill_in 'Twitter Consumer Secret *', with: 'some_secret', exact: true fill_in 'Twitter Consumer Secret *', with: 'some_secret', exact: true
fill_in 'Twitter Access Token *', with: 'some_oauth_token', exact: true fill_in 'Twitter Access Token *', with: 'some_oauth_token', exact: true