Fix failing RecipeSettingsTest

Created on 8 July 2024, 6 months ago
Updated 22 July 2024, 5 months ago

Test failure report:

Drupal\Tests\recipe\Functional\RecipeSettingsTest::testPseudoFieldLabels
Behat\Mink\Exception\ElementNotFoundException: Button with id|name|label|value "Save content type" not found.
/builds/project/recipe/web/core/tests/Drupal/Tests/WebAssert.php:158
/builds/project/recipe/web/core/tests/Drupal/Tests/UiHelperTrait.php:78
/builds/project/recipe/tests/src/Functional/RecipeSettingsTest.php:84
/builds/project/recipe/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

This is almost certainly just a result of a change to the content type form. The code can and should be refactored to update the entity directly instead of doing the work by submitting the form. That will speed up the test overall while avoiding this issue and preventing further problems in the future.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dcam

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