- Issue created by @wim leers
- @wim-leers opened merge request.
- Status changed to Needs review
about 1 year ago 10:04am 27 October 2023 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
I'm running into all Nightwatch problems again that I ran into while working on https://git.drupalcode.org/project/acquia_migrate/-/merge_requests/2. I opened ๐ Impossible to run only Nightwatch tests in a given directory (f.e. for contrib modules) Needs review to help with that, but it does not solve everything, and will never solve things in older Drupal versionsโฆ
The template-provided
nightwatch
job does this:$ yarn --cwd $_WEB_ROOT/core test:nightwatch $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME/tests
which results in:
In TestSiteInstallCommand.php line 134: The file modules/contrib/decoupled_pages/tests/src/NightwatchTestSetupFile. php does not exist.
๐ It looks in the wrong place!
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Even when using
--tag
instead, it still looks in the wrong place:$ sudo BABEL_DISABLE_CACHE=1 -u www-data yarn --cwd ./core test:nightwatch --tag=$CI_PROJECT_NAME
yields
In TestSiteInstallCommand.php line 134: The file modules/contrib/decoupled_pages/tests/src/NightwatchTestSetupFile. php does not exist.
โ https://git.drupalcode.org/project/decoupled_pages/-/jobs/236166
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
$ ls -al modules/contrib ls: cannot access 'modules/contrib': No such file or directory
โ https://git.drupalcode.org/project/decoupled_pages/-/jobs/236219
๐ฎ Why would it try to find something somewhere that literally does not exist? ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
All green! ๐ฅณ
Time to drop
9.4.x
testing and then lift thenightwatch
job changes out of here and into #3375359: Nightwatch logout steps fail with default template โ . - ๐บ๐ธUnited States mradcliffe USA
Wim Leers โ credited mradcliffe โ .
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Thanks @mradcliffe for a nice Nightwatch pointer :)
- Issue was unassigned.
- Status changed to RTBC
about 1 year ago 2:00pm 27 October 2023 -
Wim Leers โ
committed 9f83822a on 8.x-1.x
Issue #3397156 by Wim Leers, mradcliffe: Adopt GitLab CI โ and add...
-
Wim Leers โ
committed 9f83822a on 8.x-1.x
- Status changed to Fixed
about 1 year ago 2:02pm 27 October 2023 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Next up: try to remove as many of these ~150 lines of YAML as possible by landing #3375359: Nightwatch logout steps fail with default template โ ๐
Automatically closed - issue fixed for 2 weeks with no activity.