Test stabilization: The combination of sleep and exists_not is slow and prone to timing issues.
This commit is contained in:
parent
5e4958e7ac
commit
6998eb9be2
1 changed files with 4 additions and 2 deletions
|
@ -31,9 +31,11 @@ class SignupPasswordChangeAndResetTest < TestCase
|
||||||
value: 'some-pass',
|
value: 'some-pass',
|
||||||
)
|
)
|
||||||
click(css: 'button.js-submit')
|
click(css: 'button.js-submit')
|
||||||
sleep 5
|
|
||||||
|
|
||||||
exists_not(css: '.signup')
|
watch_for_disappear(
|
||||||
|
css: '.signup',
|
||||||
|
timeout: 10,
|
||||||
|
)
|
||||||
|
|
||||||
match(
|
match(
|
||||||
css: '.user-menu .user a',
|
css: '.user-menu .user a',
|
||||||
|
|
Loading…
Reference in a new issue