You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
√ Running Browser Context:
√ Element <body> was visible after 18 milliseconds.
√ Testing if the page title contains 'Ecosia' (4ms)
√ Testing if element <input[type=search]> is visible (22ms)
√ Testing if element <button[type=submit]> is visible (34ms)
√ Testing if element <.mainline-results> contains text 'Nightwatch.js' (105ms)
NoSuchElementError: An error occurred while running .isVisible() command on <SomeNotExistingElement>:
{"sessionId":"33cb638a93d5496a81634dcb30963805","status":0,"value":[]}
× Testing if element <SomeNotExistingElement> is visible in 20000ms - expected "is visible" but got: "element could not be located" (20315ms)
at Object.Browser Context (\playground\nightwatch\tests\dummyVerifyTest.js:16:30)
FAILED: 1 assertions failed, 1 errors and 5 passed (23.154s)
_________________________________________________
TEST FAILURE: 1 error during execution; 1 assertions failed, 5 passed (24.107s)
× dummyVerifyTest
– Browser Context (23.154s)
Testing if element <SomeNotExistingElement> is visible in 20000ms - expected "is visible" but got: "element could not be located" (20315ms)
at Object.Browser Context (\playground\nightwatch\tests\dummyVerifyTest.js:16:30)
NoSuchElementError: An error occurred while running .isVisible() command on <SomeNotExistingElement>:
{"sessionId":"33cb638a93d5496a81634dcb30963805","status":0,"value":[]}
In NW 1.6.4
Running: Browser Context
√ Element <body> was visible after 18 milliseconds.
√ Testing if the page title contains 'Ecosia' (20ms)
√ Testing if element <input[type=search]> is visible (29ms)
√ Testing if element <button[type=submit]> is visible (32ms)
√ Testing if element <.mainline-results> contains text 'Nightwatch.js' (104ms)
× Testing if element <SomeNotExistingElement> is visible in 20000ms - expected "is visible" but got: "element could not be located" (20255ms)
at Object.Browser Context (\playground\nightwatch\tests\dummyVerifyTest.js:16:30)
√ Testing if element <.mainline-results> contains text 'Nightwatch.js' (89ms)
FAILED: 1 assertions failed, 1 errors and 6 passed (23.355s)
_________________________________________________
TEST FAILURE: 1 error during execution; 1 assertions failed, 6 passed (24.215s)
× dummyVerifyTest
– Browser Context (23.355s)
Testing if element <SomeNotExistingElement> is visible in 20000ms - expected "is visible" but got: "element could not be located" (20255ms)
at Object.Browser Context (\playground\nightwatch\tests\dummyVerifyTest.js:16:30)
NoSuchElementError: An error occurred while running .isVisible() command on <SomeNotExistingElement>:
{"sessionId":"3412b1881dac0580f11146fcd762fb46","status":0,"value":[]}
Configuration
nightwatch.json
nunit3_reporter=require('nightwatch-nunit3-reporter');constreporter=nunit3_reporter.createReporter({output_folder: './reports/nunit3'});module.exports={
reporter,'default': {isLocal: true},'integration': {isLocal: false},waitForConditionTimeout: 20000,retryAssertionTimeout: 20000,asyncHookTimeout: 60*1000,before: function(browser,done){done();},// This will be run before each test suite is startedbeforeEach: function(browser,done){browser.status(function(result){done();});},// This will be run after each test suite is finishedafterEach: function(browser,done){browser.globals.baseUrl=undefined;done();}};
Your Environment
Executable
Version
nightwatch --version
1.7.7
npm --version
VERSION
yarn --version
VERSION
node --version
VERSION
Browser driver
Version
NAME
VERSION
OS
Version
NAME
VERSION
The text was updated successfully, but these errors were encountered:
Describe the bug
When any verify() assertion fails in async test case then the rest of the code in case is not executed at all. It used to work on NW 1.6.4.
Sample test
sampleTest.js
Run with command
Verbose output
debug.log
In NW 1.7.7
In NW 1.6.4
Configuration
nightwatch.json
Your Environment
nightwatch --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: