Make the nightwatch tests work with MongoDB

Created on 16 September 2024, 3 months ago
Updated 21 September 2024, 3 months ago

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

πŸ“Œ Task
Status

Needs review

Version

11.0 πŸ”₯

Component
OtherΒ  β†’

Last updated 22 minutes ago

Created by

πŸ‡³πŸ‡±Netherlands daffie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024