The Prompt
Write a production-ready K6 test script that automates the Search flow. Ensure you include assertions, handle async operations properly, and include at least two negative test cases. Provide comments explaining the logic.
How to use this prompt
Copy this prompt to ChatGPT or Claude. Add your specific DOM structure or API contract for the Search feature to get a customized K6 test script.