-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
My Playwright Test:
import { expect, test } from '@playwright/test';
test('graphql: query operation', async ({ request }) => {
const query = `query Query {
characters(page: 2, filter: {name: "Morty"}) {
info {
count
}
results {
name
}
}
}`;
const response = await request.post('https://rickandmortyapi.com/graphql', {
data: { query: query }
});
expect(response.status()).toEqual(200);
const body = await response.json();
console.log(JSON.stringify(body, null, 4));
});
Logs of API response:
json { "data": { "characters": { "info": { "count": 68 }, "results": [ { "name": "Hammerhead Morty" }, { "name": "Lawyer Morty" } ] } } }

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working