V3.0.1

Jun 21, 2023

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.

New features

New element APIs

With Nightwatch v3, we have revamped the element API to make test authoring simpler and more concise. Learn more More rich & powerful selectors

New selectors are introduced as part of this latest versions

.findByText()

.findByPlaceholderText()

.findByAltText()

.findByRole()

You can also chain selectors to find elements that are more complex to find

For E.g.

browser.element.find('CSS Selector').findByText('text').click();

Guide

Performance improvements

Nightwatch v3 has implemented worker threads for parallel runs and we have observed improvements of up to 25% between Nightwatch v2 & v3. Try it now

Nightwatch inspector

Nightwatch v3 introduces a point and click tool that can help you easily find selectors. It will improve your productivity of authoring tests & help you find durable selectors for lower long term maintenance. Learn more

Angular component testing

With Nightwatch v3 you can test Angular components in isolation by mounting them in the browser. Try it now

Test doubles

The unit testing with Nightwatch got an upgrade as v3 introduced test doubles. You can use mocks, stubs & spies in your Nightwatch tests.

Fixes

Other Improvements

Breaking changes

We have tried to ensure that there are no breaking changes while upgrading to v3. However, in case you need migration assistance please reach out to us on our new Nightwatch v3 channel on Discord

v3.0.0 - Beta 1

May 16, 2023

What's Changed

Features

Fixes

New Contributors

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.0.0-alpha.3...v3.0.0-beta.1

v2.6.21

May 16, 2023

What's Changed

  • Return correct status code for waitForElementNotPresent (#3678)
  • skipped tests have categorized as either user-marked or runtime-failed (#3711)
  • REPL interface exits on error or failed expect assertion.
  • Added rerun functionality for failed test (#3703)
  • Added describe name, hook timestamps to reporter (#3680)
  • feat/retry-data: Added retry test data to global reporter (#3712)
  • Always throw uncaught exceptions (#3708)
  • Added a fix for assert.hasAttribute (#3651)

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.20...v2.6.21

Apr 7, 2023

  • feat: add support for dynamic filename for HTML Report (#3667) b82b75fb
  • chore: fix build duration for HTML Reporter (#3683) 4173ac06
  • remove mkpath as a dependency (#3679) 48f488f2
  • resolve overlapping testnames issue (#3539) a647ee77
  • fix: incorrect build duration in HTML Report (#3658) 5557e5a9
  • update baseHook to handle hook done function inside command callback (#3636) 98226b8d

https://github.com/nightwatchjs/nightwatch/compare/v2.6.19...v2.6.20

v3.0.0-alpha.3

Mar 31, 2023

What's Changed

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v3.0.0-alpha.2...v3.0.0-alpha.3

v2.6.19

Mar 23, 2023

  • Fixed #3484 – Added elementId only param in moveTo command
  • Fixed #3652 – Command queue nodes with autoInvoke mode were executed twice
  • Fixed #3469 REPL interface exits on error
  • Fixed #3591 - added support to stringify objects in console output

v3.0.0 - Alpha 2

Mar 14, 2023

What's Changed

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.16...v3.0.0-alpha.2

v2.6.18

Mar 14, 2023

What's Changed

No changes, just a version bump after the alpha.

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.17...v2.6.18

v2.6.17

Mar 10, 2023

What's Changed

  • Fixed #3612 -- Add session name to Browserstack transport by @gravityvi in #3632
  • Added support to use any browser with BrowserStack and Appium. by @garg3133 in #3634

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.16...v2.6.17

v2.6.16

Mar 1, 2023

What's Changed

  • Add 'app' in REPL context. by @garg3133 in #3607
  • Fix #3466 Wait for queue traversal to begin before calling done() by @swrdfish in #3490
  • removed boxen from concurrent test runs by @qa-danny in #3616
  • Update logging output to use JSON instead of Logger.inspectObject by @vaibhavsingh97 in #3619
  • Add support for Appium locate strategies. by @garg3133 in #3620
  • Fixes/consider test suite settings in cucumber runner by @gravityvi in #3622
  • Allow multiple network mocks at the same time. by @garg3133 in #3621
  • Fix analytics issue by @swrdfish in #3447
  • api-docs: update registerBasicAuth by @tim-yao in #3623
  • Disable parallelism when running tests on safari browser by @prudhvi22 in #3565

New Contributors

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.15...v2.6.16

v2.6.15

Feb 19, 2023

  • Fixed #3574 – using end_session_on_fail regression
  • Fixed #3605 – when running in multiple environments, json and junit reporters generate report for only one environment

v2.6.14

Feb 12, 2023

  • Added global app property for using in native mobile app tests #3549
  • Added support to automatically upload the native mobile app to Browserstack AppAutomate service #3573
  • Added support for reading named exports from ESM files 2498fe
  • Added cli argument shortcuts for browser environments (--chrome, --firefox, --safari, --edge) 4cd9a8
  • Fixed visible commands for testing using Appium #3566

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.13...v2.6.14

v2.6.13

Feb 4, 2023

  • Fixed #3181 – waitForElementNotPresent inside section for the section element to be gone
  • Fixed #3455 – CDP does not reset the connection after a test session ends

v2.6.11

Jan 30, 2023

  • Fixed headless mode in chrome (#3581)
  • Fixed loading test files in ESM format on Windows #3585
  • Fixed unhandled promise rejection for wait element commands #3570
  • Added support for writing global test hooks using async/await and without a callback – 286aca

v2.6.8

Jan 10, 2023

v2.6.7

Jan 10, 2023

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.6...v2.6.7

v2.6.6

Jan 4, 2023

  • Fixed #3531 – cannot use axeRun in async/await format

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.5...v2.6.6

v2.6.5

Jan 4, 2023

  • Fixed #3422 – using .pause(0) command
  • Fixed an issue with global expect() assertions bfc2be

Full Changelog: https://github.com/nightwatchjs/nightwatch/compare/v2.6.4...v2.6.5

v2.6.4

Jan 2, 2023

  • Fixed #3538 – an issue with output logging for api testing

All releases