Fix tests failing randomly

Created on 4 July 2023, over 1 year ago

Problem/Motivation

Tests are failing randomly. We need they have to be more robust.

Steps to reproduce

See issue Add a Help Popin to theme entity Fixed

1) Drupal\Tests\self_evaluation\Functional\SelfEvaluationStepFormTest::testSelfEvaluationStepFormTheme
Behat\Mink\Exception\ResponseTextException: The text "Some questions need an choice." appears in the text of this page, but it should not.

/var/www/html/vendor/behat/mink/src/WebAssert.php:811
/var/www/html/vendor/behat/mink/src/WebAssert.php:279
/var/www/html/core/tests/Drupal/Tests/WebAssert.php:908
/var/www/html/modules/contrib/self_evaluation/tests/src/Functional/SelfEvaluationStepFormTest.php:513

or

1) Drupal\Tests\self_evaluation\Functional\SelfEvaluationStepFormTest::testSelfEvaluationStepFormTheme
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "choices_5[9]" not found.

/var/www/html/vendor/behat/mink/src/WebAssert.php:662
/var/www/html/core/tests/Drupal/Tests/WebAssert.php:1075
/var/www/html/core/tests/Drupal/Tests/UiHelperTrait.php:84
/var/www/html/modules/contrib/self_evaluation/tests/src/Functional/SelfEvaluationStepFormTest.php:485
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Proposed resolution

Understand why they are failing randomly and fix that. Tests local are always OK.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France flocondetoile Lyon

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

Comments & Activities

Production build 0.71.5 2024