Problem/Motivation
The nightwatch test do not work in combination with MongoDB. The database url is a bit different compared to the existing datbase urls. MongoDB uses a replica set and the database url for MongoDB needs to know what the name of the used replica set is. The replica set name needs to be added to the end of the database url. The part that needs to be added is: &replicaSet=dbrs
. The connection character &
breaks the nightwatch tests when they are not quoted. The other problem is that, because MongoDB is used as a replica set, its needs a moment before a user is logged in or is logged out.
Steps to reproduce
Run the nightwatch tests with MongoDB and without the fix for the problem.
Proposed resolution
Quote the nightwatch database url and add a 50 microsecond pause when a user is loged in or is logged out.
Remaining tasks
TBD
User interface changes
None
Introduced terminology
None
API changes
None
Data model changes
None
Release notes snippet
None