Write user data to a JSON file using Cypress
Preconditions (2)
Step 1: Open the Cypress test runner
Step 2: Create a test that uses cy.writeFile to write a JSON object with user details (name, email) to 'cypress/fixtures/user.json'
Step 3: Run the test
Step 4: Verify that the file 'cypress/fixtures/user.json' is created or updated with the correct JSON content
✅ Expected Result: The file 'cypress/fixtures/user.json' contains the exact JSON object with the user details written by the test