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 setup testing for a project and start with just one test I get no indication of a failure.
% npx nightwatch tests/src/ --verbose
Launching up to 1 concurrent test worker processes...
Running default: sampleTest.js
after adding the --serial flag I can actually see that there are errors.
% npx nightwatch tests/src/ --verbose --serial
Error unhandledRejection: Error while loading the API commands: the command .importScript() is already defined.
[...]
️TEST FAILURE (267ms):
- 1 error during execution;
- 0 tests failed;
- 0/NA tests passed
A flag should NOT be necessary.
Steps to reproduce
npm init nightwatch
have just 1 test available, that fails.
run npx nightwatch
Sample test
describe('user info test',function(){letcomponent;before(async()=>{component=awaitbrowser.mountComponent('/src/components/UserInfo.jsx',function(){return{date: newDate(),text: 'I hope you enjoy reading Ulysses!',author: {name: 'Leopold Bloom',avatarUrl: 'https://upload.wikimedia.org/wikipedia/commons/5/52/Poldy.png'}}});});it('should render the component without error',function(){browser.expect(component).to.be.visible;})})
Command to run
npx nightwatch
Verbose Output
No response
Nightwatch Configuration
No response
Nightwatch.js Version
3.1.3
Node Version
v18.14.2
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 setup testing for a project and start with just one test I get no indication of a failure.
after adding the
--serial
flag I can actually see that there are errors.A flag should NOT be necessary.
Steps to reproduce
npm init nightwatch
fails
.npx nightwatch
Sample test
Command to run
Verbose Output
No response
Nightwatch Configuration
No response
Nightwatch.js Version
3.1.3
Node Version
v18.14.2
Browser
No response
Operating System
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: