[random test failure] ContextualLinksTest::testContextualLinksClick

Created on 25 May 2023, over 1 year ago

Problem/Motivation

Since 📌 Focus is lost on dialog close if the opener is inside a collapsible element Fixed there have been fairly frequent random fails in I\Drupal\Tests\contextual\FunctionalJavascript\ContextualLinksTest::testContextualLinksClick iin the daily and commit tests of 10.1.x and 11.x.

The full PHPUnit error from DrupalCI is:

Testing Drupal\Tests\contextual\FunctionalJavascript\ContextualLinksTest
.F..                                                                4 / 4 (100%)

Time: 00:53.068, Memory: 4.00 MB

There was 1 failure:

1) Drupal\Tests\contextual\FunctionalJavascript\ContextualLinksTest::testContextualLinksClick
JavaScript condition met:
document.activeElement === document.querySelector("#block-branding button.trigger")
Failed asserting that false is true.

/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:166
/var/www/html/core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php:97
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
PHPUnit 

Last updated about 24 hours ago

Created by

🇳🇱Netherlands spokje

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

Comments & Activities

Production build 0.71.5 2024