function OpenTelemetryNodePagePerformanceTest::testNodePageColdCache
Same name in other branches
- 11.x core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryNodePagePerformanceTest.php \Drupal\Tests\demo_umami\FunctionalJavascript\OpenTelemetryNodePagePerformanceTest::testNodePageColdCache()
Logs node page tracing data with a cold cache.
1 call to OpenTelemetryNodePagePerformanceTest::testNodePageColdCache()
- OpenTelemetryNodePagePerformanceTest::testNodePage in core/
profiles/ demo_umami/ tests/ src/ FunctionalJavascript/ OpenTelemetryNodePagePerformanceTest.php - Test canonical node page performance with various cache permutations.
File
-
core/
profiles/ demo_umami/ tests/ src/ FunctionalJavascript/ OpenTelemetryNodePagePerformanceTest.php, line 37
Class
- OpenTelemetryNodePagePerformanceTest
- Tests demo_umami profile performance.
Namespace
Drupal\Tests\demo_umami\FunctionalJavascriptCode
protected function testNodePageColdCache() : void {
// @todo Chromedriver doesn't collect tracing performance logs for the very
// first request in a test, so warm it up.
// https://www.drupal.org/project/drupal/issues/3379750
$this->drupalGet('user/login');
$this->rebuildAll();
$this->collectPerformanceData(function () {
$this->drupalGet('node/1');
}, 'umamiNodePageColdCache');
$this->assertSession()
->pageTextContains('quiche');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.