vhost-audit/contrib/contextmenu/test/integration/trigger-left-click.js

19 lines
633 B
JavaScript
Raw Normal View History

2021-03-16 20:50:02 -07:00
var pwd = process.cwd();
var helper = require('../integration_test_helper.js');
module.exports = {
'Left-click opens context menu': function (test) {
test
.open('file://' + pwd + '/test/integration/html/trigger-left-click.html')
.click('.context-menu-one')
.waitForElement('#context-menu-layer')
.assert.visible('.context-menu-root', 'Menu is present')
.assert.exists('.context-menu-root', 'It opens context menu')
.assert.numberOfElements('.context-menu-root li')
.is(7, '7 context menu items are shown')
.assert.width('.context-menu-root').is.gt(100)
.done();
}
};