function AssetAggregationAcrossPagesTest::testFrontAndRecipesPages

Checks the asset requests made when the front and recipe pages are visited.

File

core/profiles/demo_umami/tests/src/FunctionalJavascript/AssetAggregationAcrossPagesTest.php, line 25

Class

AssetAggregationAcrossPagesTest
Tests demo_umami profile performance.

Namespace

Drupal\Tests\demo_umami\FunctionalJavascript

Code

public function testFrontAndRecipesPages() : void {
  $performance_data = $this->doRequests();
  $this->assertSame(4, $performance_data->getStylesheetCount());
  $this->assertLessThan(82000, $performance_data->getStylesheetBytes());
  $this->assertSame(1, $performance_data->getScriptCount());
  $this->assertLessThan(12000, $performance_data->getScriptBytes());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.