Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2019 at 14:26 UTC
Updated:
16 Dec 2019 at 09:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jonathan1055 commentedThe
34x Drupal\Tests\BrowserTestBase::$defaultThemeis one for every test file.Comment #3
jonathan1055 commentedSplitting into separate issues. This one is now just for $defaultTheme. Patch adds it to BrowserTestBase and sets
suppress-deprecations: falsein drupalci.yml. Two tests will fail with this and other deprecations will cause fails, but the following 34 should be goneComment #4
jonathan1055 commentedThe $defaultTheme deprecation warnings have gone, as expected. Two tests have to be adjusted because 'stark' theme has fewer classes added to page elements.
1) Drupal\Tests\scheduler\Functional\SchedulerRulesActionsTest::testPublishOnActions
Behat\Mink\Exception\ElementNotFoundException: Element matching css ".messages--warning" not found.
/var/www/html/modules/contrib/scheduler/tests/src/Functional/SchedulerRulesActionsTest.php:177
2) Drupal\Tests\scheduler\Functional\SchedulerRulesActionsTest::testUnpublishOnActions
Behat\Mink\Exception\ElementNotFoundException: Element matching css ".messages--warning" not found.
/var/www/html/modules/contrib/scheduler/tests/src/Functional/SchedulerRulesActionsTest.php:333
This patch uses
'xpath', '//div[@aria-label="Warning message"instead ofelementTextContains('css', '.messages--warning'Comment #5
jonathan1055 commentedNow back to supressing deprecations.
Comment #6
jonathan1055 commentedComment #8
jonathan1055 commentedFixed.