update formatting

This commit is contained in:
Yury Semikhatsky 2024-05-10 09:19:02 -07:00
parent a2496e951d
commit f90c4aac4e
2 changed files with 4 additions and 2 deletions

View file

@ -4879,7 +4879,8 @@ const response = await responsePromise;
// Alternative way with a predicate. Note no await.
const responsePromise = page.waitForResponse(response =>
response.url() === 'https://example.com' && response.status() === 200 && response.request().method() === 'GET'
response.url() === 'https://example.com' && response.status() === 200
&& response.request().method() === 'GET'
);
await page.getByText('trigger response').click();
const response = await responsePromise;

View file

@ -4768,7 +4768,8 @@ export interface Page {
*
* // Alternative way with a predicate. Note no await.
* const responsePromise = page.waitForResponse(response =>
* response.url() === 'https://example.com' && response.status() === 200 && response.request().method() === 'GET'
* response.url() === 'https://example.com' && response.status() === 200
* && response.request().method() === 'GET'
* );
* await page.getByText('trigger response').click();
* const response = await responsePromise;