docs(api-testing): fix broken snippet (#21499)
Fixes https://github.com/microsoft/playwright/issues/21476
This commit is contained in:
parent
2aeebc82d7
commit
7746807d9f
|
|
@ -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'
|
||||
}));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue