diff --git a/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryFrontPagePerformanceTest.php b/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryFrontPagePerformanceTest.php index a0a7c558e8a91ccd063da57b6a204d998103f0e2..17ceb2a36d5613f77f638c96189e0e24f637e61a 100644 --- a/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryFrontPagePerformanceTest.php +++ b/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryFrontPagePerformanceTest.php @@ -92,9 +92,20 @@ protected function testFrontPageCoolCache(): void { $this->clearCaches(); // Now visit a different page to warm non-route-specific caches. $this->drupalGet('user/login'); - $this->collectPerformanceData(function () { + $performance_data = $this->collectPerformanceData(function () { $this->drupalGet('<front>'); }, 'umamiFrontPageCoolCache'); + $this->assertSame(104, $performance_data->getQueryCount()); + $this->assertSame(289, $performance_data->getCacheGetCount()); + $this->assertSame(90, $performance_data->getCacheSetCount()); + $this->assertSame(0, $performance_data->getCacheDeleteCount()); + $this->assertSame(83, $performance_data->getCacheTagChecksumCount()); + $this->assertSame(91, $performance_data->getCacheTagIsValidCount()); + $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); + $this->assertSame(1, $performance_data->getScriptCount()); + $this->assertLessThan(7100, $performance_data->getScriptBytes()); + $this->assertSame(2, $performance_data->getStylesheetCount()); + $this->assertLessThan(40250, $performance_data->getStylesheetBytes()); } /**