This commit is contained in:
Simon Knott 2024-09-14 11:54:12 +02:00
parent 95ff76a95c
commit 1d061f8fcb
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -820,6 +820,17 @@ it('should include API request', async ({ contextFactory, server }, testInfo) =>
expect(entry.response.headers.find(h => h.name.toLowerCase() === 'content-type')?.value).toContain('application/json');
expect(entry.response.content.size).toBe(15);
expect(entry.response.content.text).toBe(responseBody.toString());
expect(entry.time).toBeGreaterThan(0);
expect(entry.timings).toEqual(expect.objectContaining({
blocked: -1,
connect: expect.any(Number),
dns: expect.any(Number),
receive: expect.any(Number),
send: expect.any(Number),
ssl: expect.any(Number),
wait: expect.any(Number),
}));
});
it('should not hang on resources served from cache', async ({ contextFactory, server, browserName }, testInfo) => {