Problem/Motivation
Some of the functional JavaScript tests in the Layout Builder module are causing intermittent failures (errors, not failed assertions):
https://www.drupal.org/pift-ci-job/2306318
https://www.drupal.org/pift-ci-job/2311368
https://www.drupal.org/pift-ci-job/2311855 -- Test against HEAD
The failing tests include
- AjaxBlockTest
- ContentPreviewToggleTest
- LayoutBuilderTest
Steps to reproduce
For example, https://www.drupal.org/pift-ci-job/2311855 failed with
There was 1 error:
1) Drupal\Tests\layout_builder\FunctionalJavascript\AjaxBlockTest::testAddAjaxBlock
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "settings[ajax_test]" not found.
/var/www/html/vendor/behat/mink/src/WebAssert.php:636
/var/www/html/core/tests/Drupal/Tests/WebAssert.php:1075
/var/www/html/core/modules/layout_builder/tests/src/FunctionalJavascript/AjaxBlockTest.php:86
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:703
ERRORS!
Tests: 1, Assertions: 10, Errors: 1.