Nightwatch tests failing due to lack of "capabilities" - need Selenium driver

Created on 21 August 2024, 3 months ago
Updated 20 September 2024, 2 months ago

Problem/Motivation

We recently added Nightwatch testing for some elements of the Project Browser UI. This was largely a recommendation from @mglaman to try and see if moving some of our "flaky" FunctionalJavascript tests to Nightwatch would reduce or eliminate flakiness. So currently, we just have one test that uses Nightwatch as a way to dip our toes in the water. However, that test often fails in the CI with "An error occurred while creating a new Selenium Server session: [SessionNotCreatedError] session not created: Missing or invalid capabilities" - and that itself is not always reproducible. It's intermittent.

Steps to reproduce

Run the test suite.

Proposed resolution

I *think* this has to do with the containers that are spun up to do that testing, and if that's the case, then I wonder if there is some kind of variable we can set in the CI to make things more reliable? I know that we are already setting CPU affinity kind of high because we need that, but I wonder if there's something else required for Nightwatch tests?

πŸ’¬ Support request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chrisfromredfin Portland, Maine

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