css-tester
v1.0.5
Published
chained testing for dom elements with chai
Downloads
22
Maintainers
Readme
css-tester
chained testing with (chai) expect and jquery
// cucumber step definition integration example
this.Then(/^I should see the register countdown$/, function(callback, $) {
this.css('.panel.register').exists()
.css('.panel-heading').exists()
.css('h3').containsText('Anmelden').end()
.end()
.css('.panel-body').exists().containsText('Es sind noch 2 Plätze frei.').end();
callback();
});