Skip to content

Commit

Permalink
test(nightwatch.conf.js): add 10000 wait timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Dec 30, 2021
1 parent 4890237 commit 91a8d13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/e2e/nightwatch.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

// https://www.davidmello.com/nightwatch-global-environment-variables/
/* eslint-disable no-undef */
require('@babel/register')
var config = require('../../config')
Expand All @@ -8,6 +10,17 @@ module.exports = {
output_folder: 'tests/e2e/reports',
custom_assertions_path: ['tests/e2e/custom-assertions'],
custom_commands_path: ['tests/e2e/commands'],
// An object which will be made available on the main test api, throughout the test execution
globals: { // https://nightwatchjs.org/guide/configuration/defaults.html

// default timeout value in milliseconds for waitFor commands and implicit waitFor value for
// expect assertions
waitForConditionTimeout: 10000,

// controls the timeout value for async hooks. Expects the done() callback to be invoked within this time
// or an error is thrown
asyncHookTimeout: 10000,
},

selenium: {
start_process: true,
Expand Down

0 comments on commit 91a8d13

Please sign in to comment.