What’s new in Nightwatch: March 2023
Latest updates, features and releases in the month from March 2023
Welcome to the seventh post in a monthly series that summarises the happenings in the world of Nightwatch and helps you test better.
NEW FEATURES AND RELEASES
Nightwatch V3 Alpha 3!
New Element API
Over the last month, we have been working hard on getting our V3 closer to a release! In the latest release, we have added a new Element API for finding elements on the page. This allows you to be much more granular when finding elements with all the usual flake prevention code you have become used to in Nightwatch!
Below are a few example tests from our community repository.
Test Doubles Plugin
We have also released a new plugin to go with V3 that allows you to use Stubs, Spies, and Mocks. This exposes sinon.js to your tests so that you can manipulate objects. Below are different examples of how to use them in a test.
Nightwatch Angular Component Testing
If you have been using Nightwatch to test your Angular site we have added support to do component testing with our new plugin. If you are starting a new project and use our Schematics project, this will automatically be added to your `nightwatch.conf.js` file.
Tests are nice and succinct and run with the Webpack Dev Server delivering the component to the test.
Selenium Conference Chicago
Selenium Conf happened a couple of weeks ago and our own David Burns spoke there. Watch the video to learn why we value using real browsers and mobile browsers rather than browser engines
You can also watch David in the Selenium Committers Q&A Panel moderated by Noemi Ferrera
Finally…
We have done a number of significant updates and releases across the various projects we manage. Make sure you update to the latest versions! We have a number of great features coming over the next month.
Tell us your suggestions on Github or if you want to discuss something with us or have ideas to improve this post, hit us up on Discord. P.s. If you become our 300, 400, 500, and so on, member on Discord, we’ll send you a small gift!
Check out more updates in our release notes.