Fix failing functional tests

Created on 17 August 2024, 8 months ago
Updated 12 September 2024, 7 months ago

Problem/Motivation

Tests are failing with the following errors:

There was 1 error:

1) Drupal\Tests\dashboard\Functional\DashboardFormTest::testDashboardAddContextBlock
Exception: Warning: Undefined array key "label_display"
Drupal\Core\Block\Plugin\Block\Broken->buildConfigurationForm()() (Line: 183)

...

There were 2 failures:

1) Drupal\Tests\Dashboard\Functional\DashboardLinksTest::testDashboardLocalTasksDashboardUser
Failed asserting that the text of the element identified by '//*[@id="block-primary-local-tasks"]/ul/li[1]/a' equals 'Default Dashboard(active tab)'.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Default Dashboard(active tab)'
+'Default Dashboard'

/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php:95
/var/www/html/web/core/tests/Drupal/Tests/WebAssert.php:807
/var/www/html/web/modules/contrib/dashboard/tests/src/Functional/DashboardLinksTest.php:147
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

2) Drupal\Tests\dashboard\Functional\DashboardFormTest::testDashboardFormLocalTasks
Failed asserting that the text of the element identified by '//*[@id="block-primary-local-tasks"]/ul/li[1]/a' equals 'Edit(active tab)'.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Edit(active tab)'
+'Edit'

/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php:95
/var/www/html/web/core/tests/Drupal/Tests/WebAssert.php:807
/var/www/html/web/modules/contrib/dashboard/tests/src/Functional/Form/DashboardFormTest.php:130
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

ERRORS!
Tests: 21, Assertions: 218, Errors: 1, Failures: 2.

Steps to reproduce

Run the tests locally or create a MR.

Proposed resolution

Fix the tests

Remaining tasks

Fix them

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mtift Minnesota, USA

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