Skip to content
Snippets Groups Projects
Commit ffaac511 authored by dmitriy.trt's avatar dmitriy.trt
Browse files

Issue #3299289: Update test theme for compatibility with both Drupal 9 & 10

parent 54f2a185
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ abstract class FormTestBase extends BrowserTestBase {
protected static $modules = ['taxonomy_max_depth'];
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
protected function setUp(): void {
parent::setUp();
......@@ -22,12 +22,12 @@ abstract class FormTestBase extends BrowserTestBase {
protected function assertSuccessMessageContains(string $text) {
$this->assertSession()
->elementTextContains('css', '.messages--status', $text);
->elementTextContains('css', '[data-drupal-messages] :not([role="alert"])', $text);
}
protected function assertErrorMessageContains(string $text) {
$this->assertSession()
->elementTextContains('css', '.messages--error', $text);
->elementTextContains('css', '[data-drupal-messages] [role="alert"]', $text);
}
}
......@@ -16,7 +16,7 @@ class TermMediaAjaxTest extends WebDriverTestBase {
protected static $modules = ['taxonomy_max_depth_media_test'];
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
protected $vocabulary;
......
......@@ -14,7 +14,7 @@ class TermOverviewJavascriptTest extends WebDriverTestBase {
protected static $modules = ['taxonomy_max_depth'];
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
protected $vocabulary;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment