docs(api-testing): fix broken snippet (#21499)

Fixes https://github.com/microsoft/playwright/issues/21476
This commit is contained in:
Max Schmitt 2023-03-09 16:20:19 +01:00 committed by GitHub
parent 2aeebc82d7
commit 7746807d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,7 +308,7 @@ test('last created issue should be on the server', async ({ page, request }) =>
const newIssue = await request.get(`https://api.github.com/repos/${USER}/${REPO}/issues/${issueId}`);
expect(newIssue.ok()).toBeTruthy();
expect(newIssue).toEqual(expect.objectContaining({
expect(newIssue.json()).toEqual(expect.objectContaining({
title: 'Bug report 1'
}));
});
@ -353,7 +353,7 @@ test('last created issue should be on the server', async ({ page, request }) =>
const newIssue = await request.get(`https://api.github.com/repos/${USER}/${REPO}/issues/${issueId}`);
expect(newIssue.ok()).toBeTruthy();
expect(newIssue).toEqual(expect.objectContaining({
expect(newIssue.json()).toEqual(expect.objectContaining({
title: 'Bug report 1'
}));
});