Update nightwatch to the latest version 🚀 #32
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 1.0.1 of nightwatch was just published.
The version 1.0.1 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of nightwatch.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v1.0.1A significant update from previous 0.x versions featuring a complete rewrite of the entire codebase and also including some new features. The main focus has been on improving the underlying architecture, therefore this release includes mostly fixes and improvements, but also a few brand new features. Please see the upgrade guide for details on breaking changes and how to migrate from v0.9.
WebDriver Integration
webdriverconfiguration settings may be used to control this behaviour, e.g.:For a complete list of available config settings (until the docs get updated on the website), refer to the default settings.
It's important to note that, while the Selenium Server was required with older Nightwatch versions (v0.9 and prior) and continues to work with v1.0, starting with version 1.0 Selenium is completely optional and only required in a Selenium Grid environment.
Page Objects Improvements
New Mocha Implementation
For cases when Mocha is used as a test runner, a new adapter has been introduced in place of the
mocha-nightwatchpackage. This is however in experimental stages.New programatic API
There has been some demand for a proper programatic API, through which Nightwatch may be used without a configuration file. Nightwatch exports now a new
runTests()public method which may be used for such purposes.The settings object inherits from the default settings mentioned above.
The programatic API is being used extensively in the unit/integration tests, e.g. in test/src/runner/testRunTestsuite.js
Other Fixes and Improvements:
filterandexcludeproperties.This release also paves the way for our own upcoming, Nightwatch dedicated, cloud testing service - NightCloud.io.
Known Issues and Limitations
--no-sandboxcli argument to ChromeDriver, like so:Commits
The new version differs by 83 commits.
1aed0881.0.1e655f3ffixed a linting issuece060c81.0.07f56772updated readmee8b1784updated travis build file to use eslint3b31c6cUpdated readme and sample config file49e5bf3Merge branch 'features/release-1.0'27eb4c0added new programatic api runTests and updated some of the integration tests20a413epartial refactoring of several unit testsc0cf06cupdated more test runner tests9984440partial refactoring of several unit tests2dfb492updated protocol actions and fixed several other issues97ffcffpartial refactoring of unit testsbdd93fdpartial refactoring of several unit tests7c15dd7partial refactoring of unit testsThere are 83 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴