Problem/Motivation
Testing for PHP8 compatibility has revealed that we fail with the dev-master version of behat/mink-selenium2-driver - see https://github.com/minkphp/MinkSelenium2Driver/issues/324
Steps to reproduce
composer require behat/mink-selenium2-driver:dev-master
./vendor/bin/phpunit -v core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php --filter testAddingFormBlocksToDefaults
Proposed resolution
There are two changes that impact us:
https://github.com/minkphp/MinkSelenium2Driver/pull/323 breaks the JS in \Drupal\FunctionalJavascriptTests\JSWebAssert::assertWaitOnAjaxRequest()
https://github.com/minkphp/MinkSelenium2Driver/pull/322 breaks LayoutBuilderNestedFormUiTest::testAddingFormBlocksToDefaults() because we don't probably wait for a button to be visible.
322 is handled by #3174928: Improve the stability of core JS testing and prepare for update of MinkSelenium2Driver as it also affects HEAD and improvements there are critical. This issue will handle 323.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3176361-10.patch | 7.16 KB | naresh_bavaskar |
| #5 | 3176361-reroll-5.patch | 7.16 KB | abhijith s |
| #2 | 3176361-2.patch | 7.16 KB | alexpott |
Comments
Comment #2
alexpottComment #3
ranjith_kumar_k_u commentedI have reviewed the above patch,the patch applied cleanly and it removes semi colon from javascript test conditions of following files
core/modules/big_pipe/tests/src/FunctionalJavascript/BigPipeRegressionTest.php
core/modules/ckeditor/tests/src/FunctionalJavascript/AjaxCssTest.php
core/modules/ckeditor/tests/src/Traits/CKEditorTestTrait.php
core/modules/image/tests/src/FunctionalJavascript/QuickEditImageEditorTestTrait.php
core/modules/media/tests/src/FunctionalJavascript/MediaUiJavascriptTest.php
core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php
core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
RTBC
Comment #5
abhijith s commentedRerolled patch from #2 .It works on 9.2.x .please check
Comment #6
alexpott@Abhijith S the patch in #2 still applies to 9.1.x. There is no need to reroll a patch that still applies to a branch.
Comment #7
longwaveSimple cleanup, makes sense to me.
Comment #9
catchNeeds a re-roll against 9.3.x
Comment #10
naresh_bavaskarRe-rolled the patch for 9.3.x
Comment #11
spokjeReroll done, removed
Needs rerolltag.Comment #12
longwaveVisually compared the two patches, the reroll is identical except for fuzz on a few unrelated lines.
Comment #15
catchCommitted/pushed to 9.3.x and cherry-picked to 9.2.x, thanks!