Fix tests in the Gitlab CI

Created on 28 April 2025, 2 months ago

Problem/Motivation

The tests jobs are are failing in the Gitlab CI pipeline execution: https://git.drupalcode.org/project/fluidui/-/pipelines/481531

Steps to reproduce

Run the pipeline again and you'll see this error:

executing: sudo -u www-data -H -E vendor/bin/phpunit  --bootstrap /builds/project/fluidui/web/core/tests/bootstrap.php /builds/project/fluidui/web/modules/custom/fluidui --log-junit /builds/project/fluidui/junit.xml  
PHPUnit 10.5.45 by Sebastian Bergmann and contributors.
Runtime:       PHP 8.3.20
Configuration: /builds/project/fluidui/phpunit.xml
..F.                                                                4 / 4 (100%)
HTML output was generated.
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-1-20671814.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-2-20671814.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-3-20671814.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-4-20671814.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-5-25958842.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-6-25958842.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-7-25958842.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-8-25958842.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_Functional_FluidUIAdminPagesTest-9-25958842.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_FunctionalJavascript_FluidUIDisplayWidgetTest-1-97300478.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_FunctionalJavascript_FluidUIDisplayWidgetTest-2-97300478.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_FunctionalJavascript_FluidUIDisplayWidgetTest-3-50700552.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_FunctionalJavascript_FluidUIDisplayWidgetTest-4-50700552.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_FunctionalJavascript_FluidUIDisplayWidgetTest-5-50700552.html
http://localhost/web/sites/simpletest/browser_output/Drupal_Tests_fluidui_FunctionalJavascript_FluidUIDisplayWidgetTest-6-50700552.html
Time: 00:19.416, Memory: 6.00 MB
There was 1 failure:
1) Drupal\Tests\fluidui\FunctionalJavascript\FluidUIDisplayWidgetTest::testWidgetDisplay
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'+ show preferences'
+'show/hide'
/builds/project/fluidui/tests/src/FunctionalJavascript/FluidUIDisplayWidgetTest.php:66
FAILURES!
Tests: 4, Assertions: 17, Failures: 1.

The Javascript tests are failing in the Gitlab CI pipelines

Proposed resolution

Fix the tests to work externally, I can make the tests to work in my local ddev environment, but not in the Gitlab CI pipeline jobs.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada danrod Ottawa

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024