We’re super excited to announce the release of Nightwatch v3. It that has been built around these three pillars:
-
Developer Experience: The entire experience from getting started, to writing and debugging tests, has been redesigned for speed, stability, and consistent non-flaky results.
-
Mobile first: Test your web or native, iOS and Android, mobile applications on simulators, real mobile devices or a cloud grid like BrowserStack.
-
One test automation framework: Run all types of tests from unit, component, and E2E to API, visual, and accessibility with a single framework.
What's Changed
New Features
- Add support for namespaced aliases. by @garg3133 in #3794
- Move execute and executeAsync to document ns. by @garg3133 in #3807
- Move network-related commands to .network namespace. by @yashPratp983 in #3797
Fixes
TypeScript Fixes
- Fix types for namespaces on page-objects. by @garg3133 in #3778
- Add types for Firefox namespace commands by @Priyanka0613 in #3780
- Add types support in Nightwatch examples, test, and types/tests directories. by @yashPratp983 in #3803
- Build Nightwatch using TypeScript. by @garg3133 in #3774
Dependency Updates
- update dependency nightwatch-axe-verbose to ^2.2.2 by @justafish in #3793
- Update jsdom to v21.1.2 and npm audit fix. by @itsspriyansh in #3811
- Uninstall Coveralls by @itsspriyansh in #3816
- updated semver to v7.5.2 by @itsspriyansh in #3829
Cucumber
- Fixes/3781 fix cucumber step definition config by @gravityvi in #3782
- allow esm imports (#3805) by @thermsdorff in #3806
General
- Fix takeScreenshot command not returning anything. by @garg3133 in #3769
- Feature/disable process listener for programattic api by @swrdfish in #3800
- Add missing documentation by @swrdfish in #3826
- Updated Error Message for Browser Compatibility Information. by @yashPratp983 in #3809
- programatic-api: add methods to call global hooks, add a cleanup method by @swrdfish in #3822
- add error handling for worker threads by @gravityvi in #3828
- Page-object commands should return the same page-object. by @garg3133 in #3779
- Fix elements and commands property issue with POM. by @garg3133 in #3788
- Fix sync tests getting skipped in parallel mode. by @garg3133 in #3791
- Fixed the issue regarding error if a folder defined in
src_folders
is empty when using tags by @itsspriyansh in #3824 - Fix #3625 - Changed to recursive merge on caps by @vinodreddy-bs in #3831
New Contributors
- @yashPratp983 made their first contribution in #3803
- @justafish made their first contribution in #3793
- @itsspriyansh made their first contribution in #3811
- @thermsdorff made their first contribution in #3806
- @vinodreddy-bs made their first contribution in #3831
Full Changelog: v3.0.1...v3.1.0