Nightwatch tests do not work with the default template: port the approach from core

Created on 18 July 2023, over 1 year ago
Updated 3 November 2023, about 1 year ago

Problem/Motivation

Nightwatch logout steps (core Nightwatch command from core/tests/Drupal/Nightwatch/Commands/drupalLogout.js) are failing (the assertion that the session does not exist is failing). I have only tested this on Drupal 10.1.x so far.

In addition, when reviewing the artifacts you can see what appears to be a PHP error on the login form, presumably after logging out: https://git.drupalcode.org/project/ckeditor5_paste_filter/-/jobs/59134/a...

For additional context, I first ran into this error with the suite of Nightwatch tests in ckeditor5_paste_filter β†’ , which runs smoothly on DrupalCI but not GitLab CI.

Steps to reproduce

Can be reproduced with the default template and a fairly minimal Nightwatch test: https://git.drupalcode.org/project/ckeditor5_paste_filter/-/jobs/59143

Proposed resolution

Not sure yet. Resolving the PHP error may be a viable path.

Remaining tasks

  • Troubleshoot issue
  • Other tasks TBD

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Fixed

Component

gitlab-ci

Created by

πŸ‡¨πŸ‡¦Canada star-szr

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

Comments & Activities

Production build 0.71.5 2024