A functional testing framework for component-based web applications
searchButton.should.have.text('Search');
searchButton.text.should.equal('Search');
searchButton.should.be.enabled;
grid.should.have(3).rows;
grid.rows(0).should.equal(firstRow);
grid.should.contain(firstRow, secondRow);
searchButton.should.have.text('Search').and.be.enabled;
searchButton.should(
have.text('Search'),
be.enabled
);
searchButton.should.eventually.have.text('Search').and.be.enabled;
searchButton.should.eventually(
have.text('Search'),
be.enabled
);
function Grid(locator) {
Component.call(this, locator);
this.getter('rows', function() {
return this.find('tr');
});
}
tinto.inherits(Grid, Component);
class Grid extends Component {
get rows() {
return this.find('tr');
}
}
var Grid = Component.extend({
get rows() {
return this.find('tr');
}
});
In order to use the CLI, you must install tinto globally. You can then run tinto --help
to list available commands.
See the example folder for a complete example.
This project was inspired by the excellent Testatoo functional testing library for Java.