harrinry / drupal

Verbatim mirror of the git.drupal.org repository for Drupal core. Please see the https://github.com/drupal/drupal#contributing. PRs are not accepted on GitHub.
https://drupal.org/project/drupal
0 stars 0 forks source link

Update dependency nightwatch to v3 #31

Open mend-for-github-com[bot] opened 1 year ago

mend-for-github-com[bot] commented 1 year ago

This PR contains the following updates:

Package Type Update Change
nightwatch (source) devDependencies major ^1.6.3 -> ^3.0.0

By merging this PR, the issue #3 will be automatically resolved and closed:

Severity CVSS Score CVE
Critical Critical 10.0 CVE-2022-36067
Critical Critical 10.0 CVE-2023-29017
Critical Critical 9.8 CVE-2021-23555
Critical Critical 9.8 CVE-2021-3918
Critical Critical 9.8 CVE-2022-25893
Critical Critical 9.8 CVE-2022-29078
Critical Critical 9.8 CVE-2023-29199
Critical Critical 9.8 CVE-2023-30547
Critical Critical 9.8 CVE-2023-42282
High High 7.5 CVE-2021-3807
High High 7.5 CVE-2021-3807
High High 7.5 CVE-2022-24999
High High 7.5 WS-2021-0638
Medium Medium 6.5 CVE-2023-26136
Medium Medium 5.3 CVE-2022-25883
Medium Medium 5.3 CVE-2022-25883

Release Notes

nightwatchjs/nightwatch (nightwatch) ### [`v3.1.3`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v3.1.3) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v3.1.2...v3.1.3) #### What's Changed - Fix waitUntil paramenter ordering; update waitUntil documentation; [3839](https://togithub.com/nightwatchjs/nightwatch/pull/3839) - Fixed build script and dev script for running tests on windows. [3866](https://togithub.com/nightwatchjs/nightwatch/pull/3866) - Fix flaky disable_typescript config test. [https://github.com/nightwatchjs/nightwatch/pull/3865](https://togithub.com/nightwatchjs/nightwatch/pull/3865) - Fix .registerBasicAuth() not working in Edge browser Fixes [#​3848](https://togithub.com/nightwatchjs/nightwatch/issues/3848) [https://github.com/nightwatchjs/nightwatch/pull/3857](https://togithub.com/nightwatchjs/nightwatch/pull/3857) - fix es6 module import by [https://github.com/nightwatchjs/nightwatch/pull/3858](https://togithub.com/nightwatchjs/nightwatch/pull/3858) - Update a few eslint rules around spacing. [https://github.com/nightwatchjs/nightwatch/pull/3864](https://togithub.com/nightwatchjs/nightwatch/pull/3864) - FAdd tag_filter type to NightwatchOptions interface. [#​3825](https://togithub.com/nightwatchjs/nightwatch/issues/3825) [https://github.com/nightwatchjs/nightwatch/pull/3830](https://togithub.com/nightwatchjs/nightwatch/pull/3830) - chore: bump mocha 9.2.2 => 10.2.0 [https://github.com/nightwatchjs/nightwatch/pull/3860](https://togithub.com/nightwatchjs/nightwatch/pull/3860) - Add more events for analytics [https://github.com/nightwatchjs/nightwatch/pull/3856](https://togithub.com/nightwatchjs/nightwatch/pull/3856) - Move log related commands to `.logs` namespaces. [https://github.com/nightwatchjs/nightwatch/pull/3796](https://togithub.com/nightwatchjs/nightwatch/pull/3796) - Update Selenium to 4.11 [https://github.com/nightwatchjs/nightwatch/pull/3882](https://togithub.com/nightwatchjs/nightwatch/pull/3882) - Deprecate colors.js module in favour of chalk.js [https://github.com/nightwatchjs/nightwatch/pull/3852](https://togithub.com/nightwatchjs/nightwatch/pull/3852) #### New Contributors - [@​DenysLins](https://togithub.com/DenysLins) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3857](https://togithub.com/nightwatchjs/nightwatch/pull/3857) - [@​ert78gb](https://togithub.com/ert78gb) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3858](https://togithub.com/nightwatchjs/nightwatch/pull/3858) - [@​Ykumar1415](https://togithub.com/Ykumar1415) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3830](https://togithub.com/nightwatchjs/nightwatch/pull/3830) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v3.1.2...v3.1.3 ### [`v3.1.2`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v3.1.2) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v3.1.1...v3.1.2) - Fix for failing TS tests after upgrading to v3. ([#​3845](https://togithub.com/nightwatchjs/nightwatch/issues/3845)) [`96e1b34`](https://togithub.com/nightwatchjs/nightwatch/commit/96e1b346) - update lodash.merge dependency in client ([#​3836](https://togithub.com/nightwatchjs/nightwatch/issues/3836)) [`222c603`](https://togithub.com/nightwatchjs/nightwatch/commit/222c6035) ### [`v3.1.1`](https://togithub.com/nightwatchjs/nightwatch/compare/v3.1.0...v3.1.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v3.1.0...v3.1.1) ### [`v3.1.0`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v3.1.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v3.0.1...v3.1.0) 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](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3794](https://togithub.com/nightwatchjs/nightwatch/pull/3794) - Move execute and executeAsync to document ns. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3807](https://togithub.com/nightwatchjs/nightwatch/pull/3807) - Move network-related commands to .network namespace. by [@​yashPratp983](https://togithub.com/yashPratp983) in [https://github.com/nightwatchjs/nightwatch/pull/3797](https://togithub.com/nightwatchjs/nightwatch/pull/3797) ##### Fixes ##### TypeScript Fixes - Fix types for namespaces on page-objects. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3778](https://togithub.com/nightwatchjs/nightwatch/pull/3778) - Add types for Firefox namespace commands by [@​Priyanka0613](https://togithub.com/Priyanka0613) in [https://github.com/nightwatchjs/nightwatch/pull/3780](https://togithub.com/nightwatchjs/nightwatch/pull/3780) - Add types support in Nightwatch examples, test, and types/tests directories. by [@​yashPratp983](https://togithub.com/yashPratp983) in [https://github.com/nightwatchjs/nightwatch/pull/3803](https://togithub.com/nightwatchjs/nightwatch/pull/3803) - Build Nightwatch using TypeScript. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3774](https://togithub.com/nightwatchjs/nightwatch/pull/3774) ##### Dependency Updates - update dependency nightwatch-axe-verbose to ^2.2.2 by [@​justafish](https://togithub.com/justafish) in [https://github.com/nightwatchjs/nightwatch/pull/3793](https://togithub.com/nightwatchjs/nightwatch/pull/3793) - Update jsdom to v21.1.2 and npm audit fix. by [@​itsspriyansh](https://togithub.com/itsspriyansh) in [https://github.com/nightwatchjs/nightwatch/pull/3811](https://togithub.com/nightwatchjs/nightwatch/pull/3811) - Uninstall Coveralls by [@​itsspriyansh](https://togithub.com/itsspriyansh) in [https://github.com/nightwatchjs/nightwatch/pull/3816](https://togithub.com/nightwatchjs/nightwatch/pull/3816) - updated semver to v7.5.2 by [@​itsspriyansh](https://togithub.com/itsspriyansh) in [https://github.com/nightwatchjs/nightwatch/pull/3829](https://togithub.com/nightwatchjs/nightwatch/pull/3829) ##### Cucumber - Fixes/3781 fix cucumber step definition config by [@​gravityvi](https://togithub.com/gravityvi) in [https://github.com/nightwatchjs/nightwatch/pull/3782](https://togithub.com/nightwatchjs/nightwatch/pull/3782) - allow esm imports ([#​3805](https://togithub.com/nightwatchjs/nightwatch/issues/3805)) by [@​thermsdorff](https://togithub.com/thermsdorff) in [https://github.com/nightwatchjs/nightwatch/pull/3806](https://togithub.com/nightwatchjs/nightwatch/pull/3806) ##### General - Fix takeScreenshot command not returning anything. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3769](https://togithub.com/nightwatchjs/nightwatch/pull/3769) - Feature/disable process listener for programattic api by [@​swrdfish](https://togithub.com/swrdfish) in [https://github.com/nightwatchjs/nightwatch/pull/3800](https://togithub.com/nightwatchjs/nightwatch/pull/3800) - Add missing documentation by [@​swrdfish](https://togithub.com/swrdfish) in [https://github.com/nightwatchjs/nightwatch/pull/3826](https://togithub.com/nightwatchjs/nightwatch/pull/3826) - Updated Error Message for Browser Compatibility Information. by [@​yashPratp983](https://togithub.com/yashPratp983) in [https://github.com/nightwatchjs/nightwatch/pull/3809](https://togithub.com/nightwatchjs/nightwatch/pull/3809) - programatic-api: add methods to call global hooks, add a cleanup method by [@​swrdfish](https://togithub.com/swrdfish) in [https://github.com/nightwatchjs/nightwatch/pull/3822](https://togithub.com/nightwatchjs/nightwatch/pull/3822) - add error handling for worker threads by [@​gravityvi](https://togithub.com/gravityvi) in [https://github.com/nightwatchjs/nightwatch/pull/3828](https://togithub.com/nightwatchjs/nightwatch/pull/3828) - Page-object commands should return the same page-object. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3779](https://togithub.com/nightwatchjs/nightwatch/pull/3779) - Fix elements and commands property issue with POM. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3788](https://togithub.com/nightwatchjs/nightwatch/pull/3788) - Fix sync tests getting skipped in parallel mode. by [@​garg3133](https://togithub.com/garg3133) in [https://github.com/nightwatchjs/nightwatch/pull/3791](https://togithub.com/nightwatchjs/nightwatch/pull/3791) - Fixed the issue regarding error if a folder defined in `src_folders` is empty when using tags by [@​itsspriyansh](https://togithub.com/itsspriyansh) in [https://github.com/nightwatchjs/nightwatch/pull/3824](https://togithub.com/nightwatchjs/nightwatch/pull/3824) - Fix [#​3625](https://togithub.com/nightwatchjs/nightwatch/issues/3625) - Changed to recursive merge on caps by [@​vinodreddy-bs](https://togithub.com/vinodreddy-bs) in [https://github.com/nightwatchjs/nightwatch/pull/3831](https://togithub.com/nightwatchjs/nightwatch/pull/3831) #### New Contributors - [@​yashPratp983](https://togithub.com/yashPratp983) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3803](https://togithub.com/nightwatchjs/nightwatch/pull/3803) - [@​justafish](https://togithub.com/justafish) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3793](https://togithub.com/nightwatchjs/nightwatch/pull/3793) - [@​itsspriyansh](https://togithub.com/itsspriyansh) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3811](https://togithub.com/nightwatchjs/nightwatch/pull/3811) - [@​thermsdorff](https://togithub.com/thermsdorff) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3806](https://togithub.com/nightwatchjs/nightwatch/pull/3806) - [@​vinodreddy-bs](https://togithub.com/vinodreddy-bs) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3831](https://togithub.com/nightwatchjs/nightwatch/pull/3831) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v3.0.1...v3.1.0 ### [`v3.0.1`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v3.0.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v3.0.0...v3.0.1) 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](https://nightwatchjs.org/guide/writing-tests/nightwatch-inspector.html) 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. ```js browser.element.find('CSS Selector').findByText('text').click(); ``` [Guide](https://nightwatchjs.org/guide/writing-tests/nightwatch-inspector.html) #### 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](https://togithub.com/nightwatchjs/performance_benchmarking) #### 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](https://nightwatchjs.org/guide/writing-tests/nightwatch-inspector.html) #### Angular component testing With Nightwatch v3 you can test Angular components in isolation by mounting them in the browser. [Try it now](https://nightwatchjs.org/guide/component-testing/testing-angular-components.html) #### Test doubles The unit testing with Nightwatch got an upgrade as v3 introduced [test doubles](https://nightwatchjs.org/guide/writing-tests/test-doubles.html). You can use mocks, stubs & spies in your Nightwatch tests. ### Fixes - Fix: incorrect build duration in HTML Report by [@​vaibhavsingh97](https://togithub.com/vaibhavsingh97) in [#​3658](https://togithub.com/nightwatchjs/nightwatch/pull/3658) - Fix timeout issue on windows builds. by [@​garg3133](https://togithub.com/garg3133) in [#​3660](https://togithub.com/nightwatchjs/nightwatch/pull/3660) - Fix [#​3484](https://togithub.com/nightwatchjs/nightwatch/issues/3484) Added elementId only param in moveTo command by [@​harshit-bs](https://togithub.com/harshit-bs) in [#​3517](https://togithub.com/nightwatchjs/nightwatch/pull/3517) - Fix element api support in POM. by [@​garg3133](https://togithub.com/garg3133) in [#​3689](https://togithub.com/nightwatchjs/nightwatch/pull/3689) - Fix xPath selectors to locate within elements. by [@​garg3133](https://togithub.com/garg3133) in [#​3672](https://togithub.com/nightwatchjs/nightwatch/pull/3672) #### Other Improvements - Upgrade selenium to 4.10.0 by [@​AutomatedTester](https://togithub.com/AutomatedTester) in [#​3705](https://togithub.com/nightwatchjs/nightwatch/pull/3705) - Types migration from definitely typed to Nightwatch project by [@​beatfactor](https://togithub.com/beatfactor) in [#​3714](https://togithub.com/nightwatchjs/nightwatch/pull/3714) - Remove dependency on driver binaries, fallback to selenium-manager by [@​swrdfish](https://togithub.com/swrdfish) in [#​3717](https://togithub.com/nightwatchjs/nightwatch/pull/3717) - Add the ability to rerun failed tests by [@​prudhvi22](https://togithub.com/prudhvi22) in [#​3703](https://togithub.com/nightwatchjs/nightwatch/pull/3703) #### 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](https://discord.com/channels/618399631038218240/1093179421508243596) ### [`v3.0.0`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.25...v3.0.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.25...v3.0.0) ### [`v2.6.25`](https://togithub.com/nightwatchjs/nightwatch/compare/46c0d1f52fa7f559504e779f5a7c09886fcf5f60...v2.6.25) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/46c0d1f52fa7f559504e779f5a7c09886fcf5f60...v2.6.25) ### [`v2.6.24`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.23...46c0d1f52fa7f559504e779f5a7c09886fcf5f60) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.23...46c0d1f52fa7f559504e779f5a7c09886fcf5f60) ### [`v2.6.23`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.23) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.22...v2.6.23) #### What's Changed - add support for browserstack turboscale urls by [@​nikhlagrwl](https://togithub.com/nikhlagrwl) in [https://github.com/nightwatchjs/nightwatch/pull/3969](https://togithub.com/nightwatchjs/nightwatch/pull/3969) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.22...v2.6.23 ### [`v2.6.22`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.22) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.21...v2.6.22) #### What's Changed - Lifecycle event hooks support for v2 by [@​harshit-bs](https://togithub.com/harshit-bs) in [https://github.com/nightwatchjs/nightwatch/pull/3817](https://togithub.com/nightwatchjs/nightwatch/pull/3817) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.21...v2.6.22 ### [`v2.6.21`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.21) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.20...v2.6.21) #### What's Changed - Return correct status code for waitForElementNotPresent ([#​3678](https://togithub.com/nightwatchjs/nightwatch/issues/3678)) - skipped tests have categorized as either user-marked or runtime-failed ([#​3711](https://togithub.com/nightwatchjs/nightwatch/issues/3711)) - REPL interface exits on error or failed expect assertion. - Added rerun functionality for failed test ([#​3703](https://togithub.com/nightwatchjs/nightwatch/issues/3703)) - Added describe name, hook timestamps to reporter ([#​3680](https://togithub.com/nightwatchjs/nightwatch/issues/3680)) - feat/retry-data: Added retry test data to global reporter ([#​3712](https://togithub.com/nightwatchjs/nightwatch/issues/3712)) - Always throw uncaught exceptions ([#​3708](https://togithub.com/nightwatchjs/nightwatch/issues/3708)) - Added a fix for assert.hasAttribute ([#​3651](https://togithub.com/nightwatchjs/nightwatch/issues/3651)) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.20...v2.6.21 ### [`v2.6.20`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.20) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.19...v2.6.20) - feat: add support for dynamic filename for HTML Report ([#​3667](https://togithub.com/nightwatchjs/nightwatch/issues/3667)) [`b82b75f`](https://togithub.com/nightwatchjs/nightwatch/commit/b82b75fb) - chore: fix build duration for HTML Reporter ([#​3683](https://togithub.com/nightwatchjs/nightwatch/issues/3683)) [`4173ac0`](https://togithub.com/nightwatchjs/nightwatch/commit/4173ac06) - remove mkpath as a dependency ([#​3679](https://togithub.com/nightwatchjs/nightwatch/issues/3679)) [`48f488f`](https://togithub.com/nightwatchjs/nightwatch/commit/48f488f2) - resolve overlapping testnames issue ([#​3539](https://togithub.com/nightwatchjs/nightwatch/issues/3539)) [`a647ee7`](https://togithub.com/nightwatchjs/nightwatch/commit/a647ee77) - fix: incorrect build duration in HTML Report ([#​3658](https://togithub.com/nightwatchjs/nightwatch/issues/3658)) [`5557e5a`](https://togithub.com/nightwatchjs/nightwatch/commit/5557e5a9) - update baseHook to handle hook done function inside command callback ([#​3636](https://togithub.com/nightwatchjs/nightwatch/issues/3636)) [`98226b8`](https://togithub.com/nightwatchjs/nightwatch/commit/98226b8d) ### [`v2.6.19`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.19) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.18...v2.6.19) - **Fixed** [#​3484](https://togithub.com/nightwatchjs/nightwatch/issues/3484) – Added elementId only param in `moveTo` command - **Fixed** [#​3652](https://togithub.com/nightwatchjs/nightwatch/issues/3652) – Command queue nodes with `autoInvoke` mode were executed twice - **Fixed** [#​3469](https://togithub.com/nightwatchjs/nightwatch/issues/3469) REPL interface exits on error - **Fixed** [#​3591](https://togithub.com/nightwatchjs/nightwatch/issues/3591) - added support to stringify objects in console output ### [`v2.6.18`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.18) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.17...v2.6.18) #### 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`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.17) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.16...v2.6.17) #### What's Changed - **Fixed** [#​3612](https://togithub.com/nightwatchjs/nightwatch/issues/3612) -- Add session name to Browserstack transport by [@​gravityvi](https://togithub.com/gravityvi) in [#​3632](https://togithub.com/nightwatchjs/nightwatch/pull/3632) - **Added** support to use any browser with BrowserStack and Appium. by [@​garg3133](https://togithub.com/garg3133) in [#​3634](https://togithub.com/nightwatchjs/nightwatch/pull/3634) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.16...v2.6.17 ### [`v2.6.16`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.16) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.15...v2.6.16) #### What's Changed - Add 'app' in REPL context. by [@​garg3133](https://togithub.com/garg3133) in [#​3607](https://togithub.com/nightwatchjs/nightwatch/pull/3607) - Fix [#​3466](https://togithub.com/nightwatchjs/nightwatch/issues/3466) Wait for queue traversal to begin before calling done() by [@​swrdfish](https://togithub.com/swrdfish) in [#​3490](https://togithub.com/nightwatchjs/nightwatch/pull/3490) - removed `boxen` from concurrent test runs by [@​qa-danny](https://togithub.com/qa-danny) in [#​3616](https://togithub.com/nightwatchjs/nightwatch/pull/3616) - Update logging output to use JSON instead of Logger.inspectObject by [@​vaibhavsingh97](https://togithub.com/vaibhavsingh97) in [#​3619](https://togithub.com/nightwatchjs/nightwatch/pull/3619) - Add support for Appium locate strategies. by [@​garg3133](https://togithub.com/garg3133) in [#​3620](https://togithub.com/nightwatchjs/nightwatch/pull/3620) - Fixes/consider test suite settings in cucumber runner by [@​gravityvi](https://togithub.com/gravityvi) in [#​3622](https://togithub.com/nightwatchjs/nightwatch/pull/3622) - Allow multiple network mocks at the same time. by [@​garg3133](https://togithub.com/garg3133) in [#​3621](https://togithub.com/nightwatchjs/nightwatch/pull/3621) - Fix analytics issue by [@​swrdfish](https://togithub.com/swrdfish) in [#​3447](https://togithub.com/nightwatchjs/nightwatch/pull/3447) - api-docs: update registerBasicAuth by [@​tim-yao](https://togithub.com/tim-yao) in [#​3623](https://togithub.com/nightwatchjs/nightwatch/pull/3623) - Disable parallelism when running tests on safari browser by [@​prudhvi22](https://togithub.com/prudhvi22) in [#​3565](https://togithub.com/nightwatchjs/nightwatch/pull/3565) #### New Contributors - [@​qa-danny](https://togithub.com/qa-danny) made their first contribution in [https://github.com/nightwatchjs/nightwatch/pull/3616](https://togithub.com/nightwatchjs/nightwatch/pull/3616) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.15...v2.6.16 ### [`v2.6.15`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.15) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.14...v2.6.15) - **Fixed** [#​3574](https://togithub.com/nightwatchjs/nightwatch/issues/3574) – using `end_session_on_fail` regression - **Fixed** [#​3605](https://togithub.com/nightwatchjs/nightwatch/issues/3605) – when running in multiple environments, json and junit reporters generate report for only one environment ### [`v2.6.14`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.14) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.13...v2.6.14) - **Added** global `app` property for using in native mobile app tests [#​3549](https://togithub.com/nightwatchjs/nightwatch/pull/3549) - **Added** support to automatically upload the native mobile app to Browserstack AppAutomate service [#​3573](https://togithub.com/nightwatchjs/nightwatch/pull/3573) - **Added** support for reading named exports from ESM files [2498fe](https://togithub.com/nightwatchjs/nightwatch/commit/2498fe8daf7598c2f2bf3c94f626e65e6f29d901) - **Added** cli argument shortcuts for browser environments (`--chrome`, `--firefox`, `--safari`, `--edge`) [4cd9a8](https://togithub.com/nightwatchjs/nightwatch/commit/4cd9a85f235214c13df404852b2c3c6101d88c34) - **Fixed** visible commands for testing using Appium [#​3566](https://togithub.com/nightwatchjs/nightwatch/pull/3566) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.13...v2.6.14 ### [`v2.6.13`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.13) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.11...v2.6.13) - **Fixed** [#​3181](https://togithub.com/nightwatchjs/nightwatch/issues/3181) – waitForElementNotPresent inside section for the section element to be gone - **Fixed** [#​3455](https://togithub.com/nightwatchjs/nightwatch/issues/3455) – CDP does not reset the connection after a test session ends ### [`v2.6.11`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.11) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.10...v2.6.11) - **Fixed** headless mode in chrome ([#​3581](https://togithub.com/nightwatchjs/nightwatch/pull/3581)) - **Fixed** loading test files in ESM format on Windows [#​3585](https://togithub.com/nightwatchjs/nightwatch/pull/3585) - **Fixed** unhandled promise rejection for wait element commands [#​3570](https://togithub.com/nightwatchjs/nightwatch/pull/3570) - **Added** support for writing global test hooks using async/await and without a callback – [286aca](https://togithub.com/nightwatchjs/nightwatch/commit/286aca0e2cb18925becf6638190573533d95c05d) ### [`v2.6.10`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.9...v2.6.10) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.9...v2.6.10) ### [`v2.6.9`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.8...v2.6.9) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.8...v2.6.9) ### [`v2.6.8`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.8) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.7...v2.6.8) - **Fixed** an issue with mobile app testing with `test_workers` enabled [https://github.com/nightwatchjs/nightwatch/pull/3559](https://togithub.com/nightwatchjs/nightwatch/pull/3559) ### [`v2.6.7`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.7) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.6...v2.6.7) - **Fixed** [#​3473](https://togithub.com/nightwatchjs/nightwatch/issues/3473): browser not defined issue by [https://github.com/nightwatchjs/nightwatch/pull/3550](https://togithub.com/nightwatchjs/nightwatch/pull/3550) - **Fixed** issue with reporting module names for parallel runs in [https://github.com/nightwatchjs/nightwatch/pull/3547](https://togithub.com/nightwatchjs/nightwatch/pull/3547) - **Added** Appium [specific commands](https://togithub.com/nightwatchjs/nightwatch/pull/3492): - `.appium.startActivity` - `.appium.getCurrentActivity` - `.appium.getCurrentPackage` - `.appium.getOrientation` - `.appium.setOrientation` - `.appium.getGeolocation` - `.appium.setGeolocation` - `.appium.pressKeyCode` - `.appium.longPressKeyCode` - `.appium.hideKeyboard` - `.appium.isKeyboardShown` - **Added** several improvements for running Appium from Nightwatch: - Full details [https://github.com/nightwatchjs/nightwatch/pull/3519](https://togithub.com/nightwatchjs/nightwatch/pull/3519) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.6...v2.6.7 ### [`v2.6.6`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.6) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.5...v2.6.6) - **Fixed** [#​3531](https://togithub.com/nightwatchjs/nightwatch/issues/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`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.5) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.4...v2.6.5) - **Fixed** [#​3422](https://togithub.com/nightwatchjs/nightwatch/issues/3422) – using `.pause(0)` command - **Fixed** an issue with global expect() assertions [bfc2be](https://togithub.com/nightwatchjs/nightwatch/commit/bfc2bebff99623428798601f321630b11f9c7918) **Full Changelog**: https://github.com/nightwatchjs/nightwatch/compare/v2.6.4...v2.6.5 ### [`v2.6.4`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.4) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.3...v2.6.4) - **Fixed** [#​3538](https://togithub.com/nightwatchjs/nightwatch/issues/3538) – an issue with output logging for api testing ### [`v2.6.3`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.3) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.2...v2.6.3) - **Fixed** [#​3489](https://togithub.com/nightwatchjs/nightwatch/issues/3531) `lodash` dependency issue on windows ### [`v2.6.2`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.1...v2.6.2) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.1...v2.6.2) ### [`v2.6.1`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.6.0...v2.6.1) - fixed an issue with `.within()` command for component tests - fixed an issue with `expect.element().value` – updated to use the getProperty('value') command; ### [`v2.6.0`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.6.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.5...v2.6.0) #### New features - **HTML Reporter V2** - the built-in HTML reporter for Nightwatch has been significantly upgraded and contains: - brand new UI with added functionality - support for DOM snapshots and built-in trace viewer (using the`--trace` cli flag) - integrated support for displaying reports from visual regression tests (via the official plugin [@​nightwatch/vrt](https://togithub.com/nightwatchjs/nightwatch-vrt)) #### Fixes & improvements - **Added** global **before/after** test hooks for each test worker process ([#​3501](https://togithub.com/nightwatchjs/nightwatch/pull/3501)) - **Fixed** [#​3495](https://togithub.com/nightwatchjs/nightwatch/issues/3495) an unhandled rejection was occurring in some cases when using cucumber as a test runner - **Fixed** [#​3451](https://togithub.com/nightwatchjs/nightwatch/issues/3451) - `setGeolocation` was not functional in headless mode - **Fixed** [#​3478](https://togithub.com/nightwatchjs/nightwatch/issues/3478) - `click()` fails for iOS native app testing ### [`v2.5.5`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.5.5) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.4...v2.5.5) - **Added** `.within()` command which adds support for querying within elements ### [`v2.5.4`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.5.4) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.3...v2.5.4) - **Fixed** [#​3478](https://togithub.com/nightwatchjs/nightwatch/issues/3478) click fix for iOS native app ([#​3481](https://togithub.com/nightwatchjs/nightwatch/issues/3481)) - **Fixed** [#​3387](https://togithub.com/nightwatchjs/nightwatch/issues/3387) Remove event listeners on command completion ([#​3416](https://togithub.com/nightwatchjs/nightwatch/issues/3416)) ### [`v2.5.3`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.2...v2.5.3) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.2...v2.5.3) ### [`v2.5.2`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.5.2) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.1...v2.5.2) #### New features The v2.5.2 release adds API Testing capabilities to Nightwatch with the official plugin [`@nightwatch/apitesting`](https://togithub.com/nightwatchjs/nightwatch-plugin-apitesting) which enables: - Perform API request testing - Setup a mock server which enables: - Assert on incoming requests - Assert on request headers - Assert on post data ##### Other Improvements - Added new properties to results object [#​3494](https://togithub.com/nightwatchjs/nightwatch/pull/3494) ### [`v2.5.1`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.5.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.5.0...v2.5.1) - **Fixed** [#​3475](https://togithub.com/nightwatchjs/nightwatch/issues/3475): an issue with propagating the exit code properly when using the programmatic api - **Other** – upgrade Selenium to 4.6.1 ### [`v2.5.0`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.5.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.4.2...v2.5.0) #### New features - Run tests on Mobile web - end to end setup required to run tests on Mobile web using the [`@nightwatch/mobile-helper`](https://togithub.com/nightwatchjs/mobile-helper-tool) - test your website/web app on Android (Chrome & Firefox) & iOS (Safari) - Nx monorepo integration with the Nx plugin [@​nightwatch/nx](https://www.npmjs.com/package/@​nightwatch/nx) #### Improvements - **Added** support for writing globals, page objects, and commands in ESM format [c40f86](https://togithub.com/nightwatchjs/nightwatch/commit/c40f8675f21ef58eb1d1c298f25152b6dd078c24) ##### Fixes - **Fixed** [#​3440](https://togithub.com/nightwatchjs/nightwatch/issues/3440) – socket hang up error when `report_network_errors` is enabled - **Fixed** [#​3465](https://togithub.com/nightwatchjs/nightwatch/issues/3465) – an issue with using testSuite retries with `enable_fail_fast` enabled - **Fixed** [#​3470](https://togithub.com/nightwatchjs/nightwatch/issues/3470) – issue with Actions API when passing `async` callback to `browser.perform()` ##### Other - Upgraded `selenium-webdriver` to [4.5.0](https://togithub.com/SeleniumHQ/selenium/releases/tag/selenium-4.5.0) #### Release Walkthrough Video **Mobile Helper, Nx support (monorepos), API Testing and more: Nightwatch Release Walkthrough v2.5.0** Nightwatch Release Walkthrough v2.5.0 ### [`v2.4.2`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.4.2) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.4.1...v2.4.2) - **Added** an improvement for error messages shown when running React component tests - **Fixed** `--open` cli argument wasn't working properly [#​3459](https://togithub.com/nightwatchjs/nightwatch/pull/3459) - **Added** support for launching the local web server for component testing from the android emulator [#​3460](https://togithub.com/nightwatchjs/nightwatch/pull/3460) - **Fixed** an issue with displaying the http output in the HTML reporter when running tests in parallel [3462](https://togithub.com/nightwatchjs/nightwatch/pull/3462) ### [`v2.4.1`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.4.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.4.0...v2.4.1) - **Fixed** an issue resulting from await-ing test hooks properly in some cases [4f6c31](https://togithub.com/nightwatchjs/nightwatch/commit/4f6c31a0a2d0efa2b2954f0ba7e7f31e80dae533) ### [`v2.4.0`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.4.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.9...v2.4.0) #### New features The v2.4.0 release brings improved support for **Component Testing**, which includes: - **[`@nightwatch/storybook`](https://togithub.com/nightwatchjs/nightwatch-storybook-plugin)** - new official plugin which integrates Nightwatch with [Storybook](https://storybook.js.org/) - adds ability to run component stories directly from Nightwatch, including: - interaction tests using the `play()` function - run test hooks in the Nightwatch context - run `test()` function in the Nightwatch context - run configured accessibility rules automatically using the `axe-core` suite of commands - [**`vite-plugin-nightwatch`**](https://togithub.com/nightwatchjs/vite-plugin-nightwatch/) - upgraded plugin to use Vite 3 - [**`@nightwatch/vue`**](https://togithub.com/nightwatchjs/nightwatch-plugin-vue) - new dedicated Vue.js component testing plugin which includes Vite 3 and manages its own Vite dev server - [**`@nightwatch/react`** ](https://togithub.com/nightwatchjs/nightwatch-plugin-react) - added support for writing component tests using the [Component Story Format](https://storybook.js.org/docs/react/api/csf) which supports `JSX` directly #### New CLI flags - `--serial` to run tests in serial mode (disable parallelism) - `--workers` to specify the number of test workers to be used when running tests in parallel - `--reuse-browser` to reuse the browser session if running in serial mode ##### component testing related - `--debug` – automatically pause the test execution after mounting the component and open the Nightwatch debug REPL interface. - `--story` - allows to specify which story to run from the current file (when using Storybook or JSX written in component story format) - `--preview` - used to preview a component story/test; automatically pause the test execution after mounting the component. #### Other Improvements - **Added** support to use `--devtools` CLI flag in Edge and Safari to open the Dev Tools automatically - **Added** support to enable running tests in parallel by default if not set [PR #​3364](https://togithub.com/nightwatchjs/nightwatch/pull/3364) - **Added** support for using `nightwatch.conf.ts` as config file and a few other improvements for running typescript tests [PR #​3316](https://togithub.com/nightwatchjs/nightwatch/pull/3316) #### Fixes - **Fixed** [#​3404](https://togithub.com/nightwatchjs/nightwatch/issues/3404) an issue with the `moveTo` command - **Fixed** [#​3256](https://togithub.com/nightwatchjs/nightwatch/issues/3256) `.verify` assertions do not resolve when called from within the `.perform()` command ### [`v2.3.9`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.9) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.8...v2.3.9) Minor update for the `axe-nightwatch-verbose` dependency. ### [`v2.3.8`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.8) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.7...v2.3.8) - **Fixed** [#​3396](https://togithub.com/nightwatchjs/nightwatch/issues/3396) showing version using the `--version` cli flag - **Fixed** [#​3336](https://togithub.com/nightwatchjs/nightwatch/issues/3396) an issue with using `browser.resizeWindow()` ### [`v2.3.7`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.7) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.6...v2.3.7) Fixed [#​3355](https://togithub.com/nightwatchjs/nightwatch/issues/3355) – updating the build name using client.updateCapabilities did not work ### [`v2.3.6`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.6) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.5...v2.3.6) - **Added** [`nightwatch-axe-verbose`](https://togithub.com/reallymello/nightwatch-axe-verbose) as a bundled dependency to enable accessibility testing out of the box [#​3389](https://togithub.com/nightwatchjs/nightwatch/pull/3389) ### [`v2.3.5`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.5) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.4...v2.3.5) - **Added** new CLI flag \`\`--report-filename\` to specify the report file name for the JSON reporter [d73a6f](https://togithub.com/nightwatchjs/nightwatch/commit/d73a6fdc741e85a59da97431aaf58005a57f4a5e) - **Fixed** [#​3361](https://togithub.com/nightwatchjs/nightwatch/issues/3361) -- `expect.cookie` always returning undefined value - **Fixed** an issue where the error thrown for using incorrect arguments for element commands was not reported if using `async`/`await` testcase [e9e38c](https://togithub.com/nightwatchjs/nightwatch/commit/e9e38c27c510e762a4badebc167ad0a7fedd0660) - **Fixed** [#​3372](https://togithub.com/nightwatchjs/nightwatch/issues/3372) -- chaining custom commands from page objects when imported through plugins interface - **Added** analytics feature to collect anonymous user metrics (opt in only) [PR #​3141](https://togithub.com/nightwatchjs/nightwatch/pull/3141) ### [`v2.3.4`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.4) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.3...v2.3.4) - **Fixed** [#​3284](https://togithub.com/nightwatchjs/nightwatch/issues/3284) – beforeEach hook was executed even `it()` / `test()` is marked as skipped - **Fixed** [#​3352](https://togithub.com/nightwatchjs/nightwatch/issues/3352) – a TypeError was thrown if a custom command is throwing an error ### [`v2.3.3`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.3) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.3.0...v2.3.3) #### Improvements - **Added** support for using native mobile drivers ([#​3335](https://togithub.com/nightwatchjs/nightwatch/issues/3335)) - **Added** new cli flag `--list-files` ([#​3246](https://togithub.com/nightwatchjs/nightwatch/issues/3246)) - **Added** support to retain the html report between test runs ([#​3309](https://togithub.com/nightwatchjs/nightwatch/issues/3309)) #### Fixes - **Fixed** [#​3304](https://togithub.com/nightwatchjs/nightwatch/issues/3304) - added `buildname` to settings when running on Browserstack - **Fixed** [#​3301](https://togithub.com/nightwatchjs/nightwatch/issues/3301) - awaited asserts used inside custom commands were hanging the test run - **Fixed** [#​3257](https://togithub.com/nightwatchjs/nightwatch/issues/3257) - expect.elements(..).count should be 0 if element not found ### [`v2.3.0`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.3.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.2.3...v2.3.0) #### New feature - **Added** pause and debug capabilities - [https://github.com/nightwatchjs/nightwatch/issues/3243](https://togithub.com/nightwatchjs/nightwatch/issues/3243) ##### Pause mode Add a pause() command to pause your tests indefinitely. In pause mode, you can check the state of your browser or use DevTools to debug. You can also see step-by-step execution from the paused state where the test automatically pauses at the next step. *Note: The [current pause command](https://nightwatchjs.org/guide/writing-tests/write-complex-user-actions.html#available-actions) usage stays as is. You can pass the duration of the pause and the test will pause only for that duration on the mentioned devices.* ##### Debug mode Add a debug() command to pause your test at that step. The debug mode also allows you to check the state of the browser and use DevTools. Furthermore, it offers you an interface to try out nightwatch commands and assertions while your test is paused. #### Improvements & Fixes - **Added** actionable error messages - [#​3233](https://togithub.com/nightwatchjs/nightwatch/issues/3233) Redesigned error messages for improved context, relevant documentation and mitigation steps to fix the error. - **Fixed** [#​3177](https://togithub.com/nightwatchjs/nightwatch/issues/3177) – additional options in config does not getting passed to cucumber runner - **Added** support for waitUntil to use a custom message for timeout errors (https://github.com/nightwatchjs/nightwatch/commit/4b79d79fb01017b2ddc807a6e9cd74fb59cb6e71) #### Release Walkthrough Nightwatch release walkthough Nightwatch release walkthough ### [`v2.2.3`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.2.3) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.2.2...v2.2.3) - **Fixed** [#​3183](https://togithub.com/nightwatchjs/nightwatch/issues/3183) – setting `chromeOptions` in older format didn't work - **Fixed** [#​3130](https://togithub.com/nightwatchjs/nightwatch/issues/3130) – an issue with setting the driver service port number in case of parallel runs with test workers - **Fixed** [#​3096](https://togithub.com/nightwatchjs/nightwatch/issues/3096) – an issue with session request redirection when using SauceLabs - **Fixed** [#​3264](https://togithub.com/nightwatchjs/nightwatch/issues/3264) – HTML reporter raw http logs were failing to escape html - **Added** support for `.mockNetworkResponse()` to accept relative urls (to `launch_url` setting) - **Other** – Upgraded `selenium-webdriver` version to 4.3.1 ([#​3278](https://togithub.com/nightwatchjs/nightwatch/issues/3278)) ### [`v2.2.2`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.2.2) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.2.1...v2.2.2) ##### Important fixes - **Fixed** [#​2975](https://togithub.com/nightwatchjs/nightwatch/issues/2975) – `expect.element().to.not.be.present` throws error when the element is not present - **Fixed** – an issue with persisting http data for the HTML reporter ##### New features The new [Nightwatch init](https://togithub.com/nightwatchjs/create-nightwatch/releases/tag/v1.0.0) CLI tool is now available to use in order to kick-start a new Nightwatch test project in under 60 seconds. Simply run: ```sh npm init nightwatch ``` Nightwatch CLI tool preview **Release notes for `create-nightwatch`:** https://github.com/nightwatchjs/create-nightwatch/releases/tag/v1.0.0 ##### Other - Downgraded selenium to 4.1.1 to mitigate a chromedriver startup issue ### [`v2.2.1`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.2.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.8...v2.2.1) The latest release introduces a new built-in HTML reporter and several new API commands based on the Chrome Devtools Protocol for mocking network responses, capturing logs, and more. #### Improvements - **Added** new integrated HTML reporter with test status, assertion logs & raw HTTP logs - [#​3223](https://togithub.com/nightwatchjs/nightwatch/issues/3223); ![image](https://user-images.githubusercontent.com/28780767/173353290-72dc2dfc-ab33-4cf9-8271-7d67929fb821.png) [**Read more**](https://nightwatchjs.org/guide/reporters/use-html-reporter.html) - **Added** built-in API commands for working with the Chrome Devtools Protocol - [#​3208](https://togithub.com/nightwatchjs/nightwatch/issues/3208): - [`setGeolocation`](https://nightwatchjs.org/api/setGeolocation.html) - [`captureNetworkRequests`](https://nightwatchjs.org/api/captureNetworkRequests.html) - [`mockNetworkResponse`](https://nightwatchjs.org/api/mockNetworkResponse.html) - [`setDeviceDimensions`](https://nightwatchjs.org/api/setDeviceDimensions.html) - [`getPerformanceMetrics`](https://nightwatchjs.org/api/getPerformanceMetrics.html) - [`enablePerformanceMetrics`](https://nightwatchjs.org/api/enablePerformanceMetrics.html) - [`takeHeapSnapshot`](https://nightwatchjs.org/api/takeHeapSnapshot.html) - [`captureBrowserConsoleLogs`](https://nightwatchjs.org/api/captureBrowserConsoleLogs.html) - [`captureBrowserExceptions`](https://nightwatchjs.org/api/captureBrowserExceptions.html) - **Added** `--mocha` cli flag to quickly switch the test runner to use Mocha - **Added** `--open` cli flag to open the generated HTML report automatically - **Added** new integrated JSON reporter - **Added** support for using multiple reporters - [#​3003](https://togithub.com/nightwatchjs/nightwatch/issues/3003); to specify more reporters just add several `--reporter` arguments, e.g.: `nightwatch --reporter html --reporter junit --reporter custom-reporter` #### Other - Added support to find frame when passing argument as id or name - [#​3205](https://togithub.com/nightwatchjs/nightwatch/issues/3205) - Upgraded `selenium-webdriver` to v4.2.0 - [#​3215](https://togithub.com/nightwatchjs/nightwatch/issues/3215) ### [`v2.1.8`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.1.8) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.7...v2.1.8) - **Added** - platform methods in case of Appium client ([#​3166](https://togithub.com/nightwatchjs/nightwatch/issues/3166)) - **Fixed** - an issue with generating XML output for when running tests in parallel ([#​3163](https://togithub.com/nightwatchjs/nightwatch/issues/3163)) ### [`v2.1.7`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.1.7) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.5...v2.1.7) - Upgraded the `global` package to fix an issue on windows ### [`v2.1.5`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.1.5) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.4...v2.1.5) - **Fixed** [#​3127](https://togithub.com/nightwatchjs/nightwatch/issues/3127) -- skipped count was incorrect in global reporter results - **Fixed** [#​3163](https://togithub.com/nightwatchjs/nightwatch/issues/3163) -- a circular reference issue occurring sometimes when running tests in parallel - **Added** support to throw an error when passing undefined args in `sendKeys` command ([#​3045](https://togithub.com/nightwatchjs/nightwatch/issues/3045)) - **Added** support to find frame when passing argument as id or name ([#​3097](https://togithub.com/nightwatchjs/nightwatch/issues/3097)) - **Added** update to browserstack transport and built-in config ([#​3148](https://togithub.com/nightwatchjs/nightwatch/issues/3148)) - **Added** support for marking test scenarios passed/failed and send reason to Browserstack while using Cucumber as a test-runner ([#​3132](https://togithub.com/nightwatchjs/nightwatch/issues/3132)) ### [`v2.1.4`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.1.4) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.3...v2.1.4) - **Fixed** [#​3033](https://togithub.com/nightwatchjs/nightwatch/issues/3033) – global element() was ignoring the global locate strategy - **Fixed** [#​3138](https://togithub.com/nightwatchjs/nightwatch/issues/3138) -- Unhandled rejection while using expect assertions in an async test step ### [`v2.1.3`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.1.3) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.2...v2.1.3) - **Fixed** [#​3159](https://togithub.com/nightwatchjs/nightwatch/issues/3159) - updated `ejs` to avoid a high severity vulnerability - **Fixed** [#​3154](https://togithub.com/nightwatchjs/nightwatch/issues/3154) - updated peer dependency version of chromedriver ### [`v2.1.2`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.1...v2.1.2) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.1...v2.1.2) ### [`v2.1.1`](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.0...v2.1.1) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.1.0...v2.1.1) ### [`v2.1.0`](https://togithub.com/nightwatchjs/nightwatch/releases/tag/v2.1.0) [Compare Source](https://togithub.com/nightwatchjs/nightwatch/compare/v2.0.10...v2.1.0) The Nightwatch 2.1 release adds a few important fixes and several improvements, including upgrade to Selenium 4.1.1. Here's the full list: #### Improvements - ### Support for working with Selenium [relative locators](https://www.selenium.dev/documentation/webdriver/elements/locators/#relative-locators) ```js describe('sample with relative locators', function () { before(browser => browser.navigateTo('https://archive.org/account/login')); it('locates password input', function (browser) { const passwordElement = locateWith(By.tagName('input')).below(By.css('input[type=email]')); browser .waitForElementVisible(passwordElement) .expect.element(passwordElement).to.be.an('input'); browser.expect.element(passwordElement).attribute('type').equal('password'); }); }); ```
- ### New error stack trace output which parses and highlights the source code line – [#​3071](https://togithub.com/nightwatchjs/nightwatch/issues/3071) ![image](https://user-images.githubuserc