@testim/testim-cli
Version:
Command line interface for running Testing on you CI
20 lines (17 loc) • 637 B
JavaScript
describe('windowHandleMaximize', function() {
before(h.setup());
it('should increase window size', function() {
return this.client
/**
* first set window size
*/
.windowHandleSize({ width: 500, height: 500 })
.windowHandleMaximize()
.windowHandleSize().then(function(res) {
// on some systems, we might not have maximized, like on phantomjs
// still, no error means it worked
res.value.width.should.be.above(500);
res.value.height.should.be.above(500);
});
});
});