dalekjs / dalek

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

Adding hasClass/dosntHaveClass asserion #138

Closed gskachkov closed 9 years ago

gskachkov commented 9 years ago

This PR is related to following issue https://github.com/dalekjs/dalek/issues/128 In PR was added two method that allow to test if element contains/don't contains class

test
    .open('http://dalekjs.com/guineapig/')
    .assert.hasClass('button.submit-product', 'plain-btn', 'button has plain-btn class')
    .done();
 test
   .open('http://dalekjs.com/guineapig/')
   .assert.doesntHaveClass('button.submit-product', 'btn', 'button doesn\'t have btn class')
   .done();
asciidisco commented 9 years ago

Thanks. Will take a couple of time getting this in due to technical problems in the built, but I´m fine with it. Looks good.

gskachkov commented 9 years ago

I've just fixed jshint comments.