dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

to.contains for dialogText() #139

Open ghguy opened 9 years ago

ghguy commented 9 years ago

Is this available/working? We saw a sample of it on the documentation, but it does not work. :(

Thanks!

asciidisco commented 9 years ago

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 9 years ago

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