Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase)
Settings Tray module already has real Javascript tests so I don't think it's needed to convert OffCanvasDialogTest to a real Javascript test, OffCanvasDialogTest tests response formatting, not javascript functionality, so fine to keep this as-is
Comment | File | Size | Author |
---|---|---|---|
#4 | 2870456-4.patch | 1.93 KB | ApacheEx |
Comments
Comment #3
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedIn the current readme.txt it says:
However, that string is the only occurence of "outside_in" in the entire core codebase, hence I have renamed this issue.
For info, the tests in
SettingsTrayTest.php
are already converted to BrowserTestBase. The only other test file is/core/modules/settings_tray/src/Tests/Ajax/OffCanvasDialogTest.php
and this class extendsAjaxTestBase
Comment #4
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Internetdevels, Drupal Ukraine Community commentedPreviously
AjaxTestBase
extendsWebTestBase
.So, I've converted this to
BrowserTestBase
. Here is a patch.Comment #5
LendudeNice work! Updated IS to reflect the direction that was taken here.
Comment #6
alexpottCrediting @Lendude for the review and considering the issue of whether this should be converted to a JavascriptTestBase or not.
Comment #7
alexpottCommitted and pushed a08af1ac93 to 8.5.x and 54fa50e0d3 to 8.4.x. Thanks!