nightwatch v1.3.0 Release Notes
Release Date: 2019-11-22 // over 4 years ago-
๐ New features
BDD describe Interface
โ Added BDD describe interface for writing tests. No further configuration is necessary and both exports and bdd interfaces can be mixed together (though not in the same file).
More detailsassert.not Assertions
โก๏ธ You can use .not assertions for every existing and custom assertion. Custom assertions will require to be updated to the new interface in order to make use of
.not
. Refer to the Custom assertions docs for details.module.exports = { demoTest(browser) { browser .assert.not.elementPresent('.not\_present') // previously .assert.elementNotPresent() .assert.not.visible('.non\_visible'); // previously .assert.hidden() .assert.not.urlContains('http://'); // ... } }
๐ New APIs
Commands:
Assertions:
Expect:
๐ Improvements
๐ New CLI options:
- ๐ป
--headless
- Launch the browser (Chrome or Firefox) in headless mode. - โ
--timeout
- Set the global timeout for assertion retries before an assertion fails. The various timeout values are defined in the Globals section.
โ More details
โ
nightwatch
Test Runner- ๐ง Auto-generated configuration: if no existing config file is found in the current folder, Nightwatch will generate a
nightwatch.conf.js
config file, based on the operation system and existing driver packages. More details - โ Added support for http keepAlive which should be enabled when using remote testing services. See Configuration for details.
- โ Added several improvements for running tests against cloud testing provider Browserstack; see also an example configuration for using Browserstack.
๐ Fixes
- ๐ป