Skip to content
Snippets Groups Projects
Verified Commit 45df42c3 authored by Dave Long's avatar Dave Long
Browse files

Issue #3414261 by catch: Add authenticated user umami performance tests

(cherry picked from commit af726dbf)
parent 23a1308b
No related branches found
No related tags found
14 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...,!6354Draft: Issue #3380392 by phma: Updating language weight from the overview reverts label if translated,!6324Issue #3416723 by Ludo.R: Provide a "node type" views default argument
Pipeline #76408 passed with warnings
Pipeline: drupal

#76418

    Pipeline: drupal

    #76411

      <?php
      declare(strict_types=1);
      namespace Drupal\Tests\demo_umami\FunctionalJavascript;
      use Drupal\FunctionalJavascriptTests\PerformanceTestBase;
      /**
      * Tests demo_umami profile performance.
      *
      * @group OpenTelemetry
      * @group #slow
      */
      class OpenTelemetryAuthenticatedPerformanceTest extends PerformanceTestBase {
      /**
      * {@inheritdoc}
      */
      protected $profile = 'demo_umami';
      protected function setUp(): void {
      parent::setUp();
      $user = $this->drupalCreateUser();
      $this->drupalLogin($user);
      }
      /**
      * Logs front page tracing data with an authenticated user and warm cache.
      */
      public function testFrontPageAuthenticatedWarmCache(): void {
      $this->drupalGet('<front>');
      $this->drupalGet('<front>');
      $performance_data = $this->collectPerformanceData(function () {
      $this->drupalGet('<front>');
      }, '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());
      }
      }
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Please register or to comment