From 3fa86efd1a62ce47fdbb9f1e57274bc0f52a20f4 Mon Sep 17 00:00:00 2001 From: Mateus Etto Date: Tue, 4 Jun 2024 18:30:12 +0900 Subject: [PATCH] Small fix to playwright note --- notes/framework/playwright/network.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/framework/playwright/network.md b/notes/framework/playwright/network.md index 008a51b..3a864b1 100644 --- a/notes/framework/playwright/network.md +++ b/notes/framework/playwright/network.md @@ -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++; } });