Closed zaach closed 10 years ago
// brittle, but some processing time.
.wait(2000)
.elementByCssSelector('.error').isDisplayed()
.then(function (isDisplayed) {
assert.isTrue(isDisplayed);
})
.end()
this can probably use
.waitForElementByCssSelector
I'll PR something tomorrow if this isn't updated.
@vladikoff Maybe, I think that's not being used because the element is already in the DOM but not displayed. I'm looking now.
waitForVisibleByCssSelector
might also work, I'll have to check. Via https://github.com/admc/wd/blob/v0.2.2/doc/jsonwire-full-mapping.md
Yep, I'm trying it out now.
wait(Number.POSITIVE_INFINITY)
?
This particular functional test in
tests/functional/settings.js
is a serious offender:sign in, try to change password with an incorrect old password
.There are a couple of other functional tests that use
wait
(inreset_password.js
andconfirm.js
) that might deserve some attention, too.