Verified Commit 84be5418 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3272734 by danflanagan8: Statistics tests should not rely on Classy

parent 3fc595ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ class StatisticsLoggingTest extends WebDriverTestBase {
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';
  protected $defaultTheme = 'stark';

  /**
   * Node for tests.
@@ -85,7 +85,7 @@ protected function getStatisticsCounter($path) {
    // update information on the page. See statistics_node_links_alter().
    $this->node->save();

    $field_counter = $this->getSession()->getPage()->find('css', '.statistics-counter');
    $field_counter = $this->getSession()->getPage()->find('css', '.links li');
    return $field_counter ? (int) explode(' ', $field_counter->getText())[0] : NULL;
  }