Generate UI functional test using cypress for a specific page.

generate functional test for a UI page that is built using a react framework

Created Jan 25, 2025 Updated Jan 25, 2025 by Nihit Kasabwala

Review the ui component at @workspace/<location of the component file .tsx or .jsx> and generate cypress based functional test. To mock the response from / GET call use the fixture defined in @workspace/location of the fixture. The cyrpress.config.ts is already defined in @workspace/. This new functional test should be written to in the @workspace/ folder. If there are any environment variables to written to the cypress config file, please list them separately. If you need data-testid to reference any component in the cy.get selectors, please provide those recommendations, do not assume they exist.

Related Content

Find Prompts, Rules & Agents

Search through our comprehensive library for Amazon Q Developer