nightwatchcss
nightwatchcss copied to clipboard
Nothing happening
var nightwatchcss = require('nightwatchcss');
module.exports = {
before: function (browser) {
},
after: function (browser) {
console.log('Wrapping up...');
browser.end();
},
"Init nightwatchcss": function (browser) {
nightwatchcss.init(browser, {
screenshotRoot: 'screenCompare/webdrivecssExpected',
failedComparisonsRoot: 'screenCompare/diffs',
});
},
'Screen comparison': function (browser) {
browser
.url('http://eyeem.com')
.resizeWindow(1400, 4000)
.useCss().waitForElementVisible(uiElements.topNavBar.logo)
.webdrivercss('hoho', {
elem: 'body',
}, function (err, res) {
console.log('assert nothing');
})
.pause(5000);
}
};
Nothing happens, the folders are created but they are empty. Also the console message doesn't show up.