Skip to content

[Flaky CI]: [webkit] replay/extendNetworkBreadcrumbs/fetch/captureResponseBody/test.ts:257:11 › does not capture response body when URL does not match #11136

Closed
@AbhiPrasad

Description

@AbhiPrasad

Flakiness Type

Assertion failure

Name of Job

Playwright (esm 3/3) Tests

Name of Test

replay/extendNetworkBreadcrumbs/fetch/captureResponseBody/test.ts:257:11

Link to Test Run

https://github.com/getsentry/sentry-javascript/actions/runs/8298916921/job/22714193556?pr=11134

#11134

Details

1) [webkit] › replay/extendNetworkBreadcrumbs/fetch/captureResponseBody/test.ts:257:11 › does not capture response body when URL does not match 

    Error: expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 0

    @@ -1,10 +1,9 @@
      Object {
        "category": "fetch",
        "data": Object {
          "method": "POST",
    -     "response_body_size": 13,
          "status_code": 200,
          "url": "http://localhost:7654/bar",
        },
        "timestamp": Any<Number>,
        "type": "http",

      300 |
      301 |   expect(eventData?.breadcrumbs?.length).toBe(1);
    > 302 |   expect(eventData!.breadcrumbs![0]).toEqual({
          |                                      ^
      303 |     timestamp: expect.any(Number),
      304 |     category: 'fetch',
      305 |     type: 'http',

        at /home/runner/work/sentry-javascript/sentry-javascript/dev-packages/browser-integration-tests/suites/replay/extendNetworkBreadcrumbs/fetch/captureResponseBody/test.ts:302:38

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions