-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run is stoped after a fail/error in any before() method #4284
Comments
@olkaz Sorry for getting here late, but this issue is happening because you're using the If you instead write your before hook as below, the tests will work fine. before(async function (app: NightwatchAPI) {
await app.waitForElementPresent({locateStrategy: 'id', selector: 'org.wikipedia:id/fragment_onboarding_skip_button2'})
.click('id', 'org.wikipedia:id/fragment_onboarding_skip_button2');
}); The issue happening in your case is that the Now, normally the hook would be stuck for 20 secs after which the But all in all, this issue is easily resolvable by removing the use of Another alternative to resolve this is to use |
Closing this issue. Feel free to reopen in case this is still not resolved on your end. |
Description of the bug/issue
When run get a NightwatchAssertError (or any other fail/error) in before() method the all run a stopped. No report is created.
I'm expecting that only failed test will be skipped, not an entire suite.
Steps to reproduce
Clone an example project
Run npm install
run >>
npx nightwatch ./test/mobile-app-tests/ --env app.android.real --reporter=html --open
Sample test
Command to run
Verbose Output
No response
Nightwatch Configuration
Nightwatch.js Version
3.8.0
Node Version
No response
Browser
No response
Operating System
No response
Additional Information
Example test > https://github.com/pretorian121/test-proj
Problem in a discord chat > https://discord.com/channels/618399631038218240/935468415731253258/1298987835650605206
The text was updated successfully, but these errors were encountered: