Back to Library
UI

Search with Network Synchronization

Prompt

Generate a Playwright test that performs search and waits for API response instead of timeout, then validates all results contain search keyword.

Example Code

const response = page.waitForResponse(r => r.url().includes('/search')); await page.fill('#search','laptop'); await page.press('#search','Enter'); await response;

Quick Actions

PRO TIP

Paste this prompt as a comment in your .spec.ts file and let Copilot generate the test.

Next Steps
Browse Prompts