The predicate with which I want to capture a response sometimes involves looking at the response body which returns a promise. It would be nice if the predicate function had promise support.
const response = await page.waitForResponse(async (response) => { return await response.text().includes('<html />') });