Test stabilization: The combination of sleep and exists_not is slow and prone to timing issues.

This commit is contained in:
Thorsten Eckel 2018-07-23 19:35:44 +02:00
parent 5e4958e7ac
commit 6998eb9be2

View file

@ -31,9 +31,11 @@ class SignupPasswordChangeAndResetTest < TestCase
value: 'some-pass',
)
click(css: 'button.js-submit')
sleep 5
exists_not(css: '.signup')
watch_for_disappear(
css: '.signup',
timeout: 10,
)
match(
css: '.user-menu .user a',