keystone-nightwatch-e2e
Version:
Nightwatch end-to-end testing framework for KeystoneJS applications
42 lines (41 loc) • 1.23 kB
JavaScript
module.exports = {
// this controls whether to abort the test execution when an assertion failed and skip the rest
// it's being used in waitFor commands and expect assertions
abortOnAssertionFailure: true,
// this will overwrite the default polling interval (currently 500ms) for waitFor commands
// and expect assertions that use retry
waitForConditionPollInterval: 300,
// default timeout value in milliseconds for waitFor commands and implicit waitFor value for
// expect assertions
waitForConditionTimeout: 60000,
// this will cause waitFor commands on elements to throw an error if multiple
// elements are found using the given locate strategy and selector
throwOnMultipleElementsReturned: true,
// controls the timeout time for async hooks. Expects the done() callback to be invoked within this time
// or an error is thrown
asyncHookTimeout: 10000,
defaultPauseTimeout: 1000,
default: {
},
saucelabs: {
},
before: function (cb) {
cb();
},
beforeEach: function (browser, cb) {
cb();
},
after: function (cb) {
cb();
},
afterEach: function (browser, cb) {
cb();
},
reporter: function (results, cb) {
cb();
},
keyStroke: {
enterKey: ['\uE006'],
downArrowKey: ['\uE015'],
},
};