Company
Date Published
Author
Jennifer Shehane
Word count
694
Language
English
Hacker News points
None

Summary

The cy.prompt feature is a new addition to Cypress that utilizes Large Language Models (LLMs) to generate test code, offering a fast and robust testing experience with minimal user configuration required. To use cy.prompt, a Cypress Cloud account is necessary, which securely manages LLM requests and provides visibility into usage details without training models on customer data. The feature aims to prevent flaky or unreliable tests by generating and caching code for consistent behavior and adapting to application changes. Cy.prompt is designed to optimize efficiency, with LLM calls occurring only once per prompt and generated code being cached and reused in subsequent runs. The feature provides transparency into the generated code, allowing users to view and troubleshoot it as a standard Cypress test. During its experimental release, access to cy.prompt will be provided at no additional charge, with certain built-in limits on prompt calls applying, and the company plans to collect feedback to guide future development of the feature, aiming for a release by the end of summer.