Skip to content

Commit

Permalink
Small fix to playwright note
Browse files Browse the repository at this point in the history
  • Loading branch information
Yutsuten committed Jun 4, 2024
1 parent c4165dc commit 3fa86ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/framework/playwright/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and count the number of responses.
let responseCount = 0;
page.on('response', response => {
if (response.url().endsWith('/api/users')) {
expect(response).toBeOK();
expect(response.status()).toBe(200);
responseCount++;
}
});
Expand Down

0 comments on commit 3fa86ef

Please sign in to comment.