Verified Commit cf48246a authored by alexpott's avatar alexpott
Browse files

Issue #3281451 by tinto: Update Ajax FunctionalJavascript test to not use Bartik and Seven

(cherry picked from commit ed4df467)
parent 70fc227f
...@@ -22,9 +22,9 @@ class AjaxTest extends WebDriverTestBase { ...@@ -22,9 +22,9 @@ class AjaxTest extends WebDriverTestBase {
protected $defaultTheme = 'stark'; protected $defaultTheme = 'stark';
public function testAjaxWithAdminRoute() { public function testAjaxWithAdminRoute() {
\Drupal::service('theme_installer')->install(['stable', 'seven']); \Drupal::service('theme_installer')->install(['stable', 'claro']);
$theme_config = \Drupal::configFactory()->getEditable('system.theme'); $theme_config = \Drupal::configFactory()->getEditable('system.theme');
$theme_config->set('admin', 'seven'); $theme_config->set('admin', 'claro');
$theme_config->set('default', 'stable'); $theme_config->set('default', 'stable');
$theme_config->save(); $theme_config->save();
...@@ -35,7 +35,7 @@ public function testAjaxWithAdminRoute() { ...@@ -35,7 +35,7 @@ public function testAjaxWithAdminRoute() {
// admin theme. // admin theme.
$this->drupalGet('admin/ajax-test/theme'); $this->drupalGet('admin/ajax-test/theme');
$assert = $this->assertSession(); $assert = $this->assertSession();
$assert->pageTextContains('Current theme: seven'); $assert->pageTextContains('Current theme: claro');
// Now click the modal, which should also use the admin theme. // Now click the modal, which should also use the admin theme.
$this->drupalGet('ajax-test/dialog'); $this->drupalGet('ajax-test/dialog');
...@@ -44,7 +44,7 @@ public function testAjaxWithAdminRoute() { ...@@ -44,7 +44,7 @@ public function testAjaxWithAdminRoute() {
$assert->assertWaitOnAjaxRequest(); $assert->assertWaitOnAjaxRequest();
$assert->pageTextContains('Current theme: stable'); $assert->pageTextContains('Current theme: stable');
$assert->pageTextNotContains('Current theme: seven'); $assert->pageTextNotContains('Current theme: claro');
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment