to.contains for dialogText()
ghguy opened this issue · 2 comments
ghguy commented
Is this available/working? We saw a sample of it on the documentation, but it does not work. :(
Thanks!
asciidisco commented
Congratulations, you just found a bug!
I was able to reproduce it using the following code:
'Can get text of an confirm dialog (OK, TDD style, no message)': function (test) {
test
.open('http://dalekjs.com/guineapig/index.html')
.click('#alert_confirm')
.assert.dialogText().is('I am a confirm')
.accept()
.done();
},
'Can get !text of an alert dialog (OK, TDD style, no message)': function (test) {
test
.open('http://dalekjs.com/guineapig/index.html')
.click('#alert_alert')
.assert.dialogText().is.not('I am an confirm')
.accept()
.done();
},
ghguy commented
Ok, since it is a bug, that means to.contains would not work until it is fixed correct? For all browsers, we supposed?
Any idea if this is going to be fixed soon? :o