Skip to content
Snippets Groups Projects
Commit a8ab8712 authored by catch's avatar catch
Browse files

Issue #3477191 by goz, pavel.bulat, benjifisher, catch: Add...

Issue #3477191 by goz, pavel.bulat, benjifisher, catch: Add PerformanceTestTrait::assertMetrics() so it is easier to write performance tests
parent 43cc332a
No related branches found
No related tags found
4 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #392394 passed with warnings
Pipeline: drupal

#392398

    ......@@ -28,7 +28,7 @@ public function testFrontAndRecipesPages(): void {
    $expected = [
    'ScriptCount' => 1,
    'ScriptBytes' => 11850,
    'ScriptBytes' => 11700,
    'StylesheetCount' => 6,
    'StylesheetBytes' => 124450,
    ];
    ......@@ -48,11 +48,10 @@ public function testFrontAndRecipesPagesAuthenticated(): void {
    $expected = [
    'ScriptCount' => 2,
    'ScriptBytes' => 249650,
    'ScriptBytes' => 249200,
    'StylesheetCount' => 6,
    ];
    $this->assertMetrics($expected, $performance_data);
    $this->assertLessThan(250000, $performance_data->getScriptBytes());
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment