Skip to content

[Flaky CI]: tracing/metrics/web-vitals-lcp/test.ts:8:11 › should capture a LCP vital with element details #13115

Open
@billyvg

Description

@billyvg

Flakiness Type

Other / Unknown

Name of Job

CI: Build & Test / Playwright (bundle_tracing_replay) Tests (pull_request)

Name of Test

tracing/metrics/web-vitals-lcp/test.ts:8:11

Link to Test Run

https://github.com/getsentry/sentry-javascript/actions/runs/10150865353/job/28069103651?pr=13072#step:10:413

Details

  1) [chromium] › tracing/metrics/web-vitals-lcp/test.ts:8:11 › should capture a LCP vital with element details. 

    Error: expect(received).toBe(expected) // Object.is equality

    Expected: "body > img"
    Received: "body > button[type=\"button\"]"

      26 |   expect(eventData.measurements?.lcp?.value).toBeDefined();
      27 |
    > 28 |   expect(eventData.contexts?.trace?.data?.['lcp.element']).toBe('body > img');
         |                                                            ^
      29 |   expect(eventData.contexts?.trace?.data?.['lcp.size']).toBe(107400);
      30 |   expect(eventData.contexts?.trace?.data?.['lcp.url']).toBe('https://example.com/path/to/image.png');
      31 | });

        at /home/runner/work/sentry-javascript/sentry-javascript/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/test.ts:28:60

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions