Skip to content

[BUG] Request body of a Graphql POST API call is not displayed in the trace viewer #15031

@amalsgit

Description

@amalsgit

Context:

  • Playwright Version: 1.22.2
  • Operating System: Mac 12.4
  • Node.js version: v16.14.2

Code Snippet

import test from "@playwright/test";

test("sample", async ({ request }) => {
  await request.post("https://swapi.skyra.pw/", {
    data: {
      query: `{
  getFilm(film: 1) {
    director
    episodeId
    openingCrawl
  }
}`,
    },
  });
});

Describe the bug

Request body of a Graphql POST call is not displayed in the trace viewer.

image

Can the request query/mutation be also displayed in the trace viewer?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions