Browse Source

Test stabilization: Non standard way to wait for modal close causes flanky test.

Thorsten Eckel 6 years ago
parent
commit
b2b2afb333
1 changed files with 1 additions and 7 deletions
  1. 1 7
      test/browser/admin_channel_email_test.rb

+ 1 - 7
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',