Promptzpromptz
LibraryPromptsAgentsPowersSteeringHooks
Back to Prompts
promptpromptz
IDECLI

Generate Rest Api Fixtures For Cypress Testing

Nihit Kasabwala
Jan 25, 2025
Updated Jan 25, 2025
741fdd7
View on GitHub
Prompt Content
# generate REST API fixtures for cypress testing

An API endpoint returns the following JSON response as an array of elements. The below represents a singular element.

//provide the JSON element here

Using this information please generate a cypress fixture to mock this response to generate up to 7 such records. Feel free to randomize or negate certain key attributes in the JSON response. Note the below rules for specific element:

<Provide details of keys which can only have certain values, example department can only be "HR", "IT" or "Finance">