From b2b2afb3331c7f31d11a4ff2b490b9d81bf4009e Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 14 Dec 2018 18:24:47 +0100 Subject: [PATCH] Test stabilization: Non standard way to wait for modal close causes flanky test. --- test/browser/admin_channel_email_test.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/browser/admin_channel_email_test.rb b/test/browser/admin_channel_email_test.rb index b19a013d0..e463d0415 100644 --- a/test/browser/admin_channel_email_test.rb +++ b/test/browser/admin_channel_email_test.rb @@ -98,13 +98,7 @@ class AdminChannelEmailTest < TestCase value: 'Users', ) click(css: '.modal button.js-submit') - sleep 2 - - watch_for_disappear( - css: '.modal', - ) - sleep 2 - exists_not(css: '.modal') + modal_disappear(timeout: 20) watch_for( css: '.content.active',