diff --git a/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryAuthenticatedPerformanceTest.php b/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryAuthenticatedPerformanceTest.php new file mode 100644 index 00000000000..e063181dc3c --- /dev/null +++ b/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryAuthenticatedPerformanceTest.php @@ -0,0 +1,45 @@ +drupalCreateUser(); + $this->drupalLogin($user); + } + + /** + * Logs front page tracing data with an authenticated user and warm cache. + */ + public function testFrontPageAuthenticatedWarmCache(): void { + $this->drupalGet(''); + $this->drupalGet(''); + + $performance_data = $this->collectPerformanceData(function () { + $this->drupalGet(''); + }, 'authenticatedFrontPage'); + $this->assertLessThanOrEqual(16, $performance_data->getQueryCount()); + $this->assertGreaterThanOrEqual(15, $performance_data->getQueryCount()); + $this->assertSame(15, $performance_data->getCacheGetCount()); + $this->assertSame(0, $performance_data->getCacheSetCount()); + $this->assertSame(0, $performance_data->getCacheDeleteCount()); + } + +}