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

This commit is contained in:
Thorsten Eckel 2018-12-14 18:24:47 +01:00
parent 3ca697dab7
commit b2b2afb333

View file

@ -98,13 +98,7 @@ class AdminChannelEmailTest < TestCase
value: 'Users', value: 'Users',
) )
click(css: '.modal button.js-submit') click(css: '.modal button.js-submit')
sleep 2 modal_disappear(timeout: 20)
watch_for_disappear(
css: '.modal',
)
sleep 2
exists_not(css: '.modal')
watch_for( watch_for(
css: '.content.active', css: '.content.active',