Add API Testing plugin for Nightwatch to Drupal Core

Created on 19 August 2024, 5 months ago
Updated 22 August 2024, 5 months ago

Problem/Motivation

Nightwatch provides a convenient plugin @nightwatch/apitesting to test API calls, here is the documentation: https://nightwatchjs.org/guide/writing-tests/api-testing.html

But this plugin is not installed by Drupal by default, so we can't use it out of the box.

And we can't add it using Drupal CI, because of the issue #3468854: Add a step to install JavaScript dependencies (npm) of the module in Drupal CI pipeline

So, would be good to include this plugin by default, maybe?

Steps to reproduce

Try to use the Nightwatch apitesting plugin in Drupal Nightwatch tests.
See that it is missing, and seems there are no ways to install it manually for Drupal CI pipelines.

Proposed resolution

Add this dependency to the Drupal Core's package.json file.

If this is okay, I can prepare an MR with this fix.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component
Javascript 

Last updated about 4 hours ago

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

Production build 0.71.5 2024