Nightwatch pipeline started to fail if the module contains Nightwatch commands

Created on 27 November 2024, 5 months ago

Problem/Motivation

After fixing the issue 🐛 BROWSERTEST_OUTPUT_VERBOSE is not passed to run-tests.sh when running with it Active I faced a new issue - any Drupal module that contains Nightwatch commands started to fail with an error:

    Error   unhandledRejection: Error while loading the API commands: the command .myNightwatchCommand() is already defined.
TypeError: Error while loading the API commands: the command .myNightwatchCommand() is already defined.
    at CommandLoader.validateMethod (/builds/project/test_helpers/web/core/node_modules/nightwatch/lib/api/_loaders/_command-loader.js:54:19)
    at CommandLoader.define (/builds/project/test_helpers/web/core/node_modules/nightwatch/lib/api/_loaders/_base-loader.js:330:10)
    at ApiLoader.addCommandDefinitionAsync (/builds/project/test_helpers/web/core/node_modules/nightwatch/lib/api/index.js:367:42)
    at async Promise.all (index 29)

Steps to reproduce

A job reproducing the issue: https://git.drupalcode.org/project/test_helpers/-/jobs/3506124

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

gitlab-ci

Created by

🇦🇲Armenia murz Yerevan, Armenia

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