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
When I try to run a session (Particularly on BrowserStack) with Nightwatch the framework is overriding the status set by me via Javascript causing reporting issues.
Steps to reproduce
Run any test that has the retrying mechanism with Nightwatch.
The retried test will always be marked as failed.
Try to then update the status of the session with a Javascript
Nightwatch will still override and set the status of the test to failed.
Please consider this screenshot for better understanding:
Here as we see I marked the session status as passed but at the end Nightwatch still overwrote the status and set it to failed.
The use case here is that retried tests should not be considered as failed.
Sample test
letretries=0;// this test will only pass if it's run with suiteRetries > 1module.exports={asyncdemoTest(client){client.url(client.globals.launch_url);client.globals.retryAssertionTimeout=3000;if(retries<1){retries+=1;client.assert.equal(0,1);}else{client.assert.equal(1,1);}},};
Command to run
No response
Verbose Output
No response
Nightwatch Configuration
No response
Nightwatch.js Version
3.3.2
Node Version
No response
Browser
No response
Operating System
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description of the bug/issue
When I try to run a session (Particularly on BrowserStack) with Nightwatch the framework is overriding the status set by me via Javascript causing reporting issues.
Steps to reproduce
Sample test
Command to run
No response
Verbose Output
No response
Nightwatch Configuration
No response
Nightwatch.js Version
3.3.2
Node Version
No response
Browser
No response
Operating System
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: