Verified Commit cf48246a authored by Alex Pott's avatar Alex Pott
Browse files

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

(cherry picked from commit ed4df467)
parent 70fc227f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -22,9 +22,9 @@ class AjaxTest extends WebDriverTestBase {
  protected $defaultTheme = 'stark';

  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->set('admin', 'seven');
    $theme_config->set('admin', 'claro');
    $theme_config->set('default', 'stable');
    $theme_config->save();

@@ -35,7 +35,7 @@ public function testAjaxWithAdminRoute() {
    // admin theme.
    $this->drupalGet('admin/ajax-test/theme');
    $assert = $this->assertSession();
    $assert->pageTextContains('Current theme: seven');
    $assert->pageTextContains('Current theme: claro');

    // Now click the modal, which should also use the admin theme.
    $this->drupalGet('ajax-test/dialog');
@@ -44,7 +44,7 @@ public function testAjaxWithAdminRoute() {
    $assert->assertWaitOnAjaxRequest();

    $assert->pageTextContains('Current theme: stable');
    $assert->pageTextNotContains('Current theme: seven');
    $assert->pageTextNotContains('Current theme: claro');
  }

  /**