Mock API response using fixture in Cypress
Preconditions (3)
Step 1: Open the application page that triggers the GET request to '/api/user'
Step 2: Intercept the GET request to '/api/user' and respond with the fixture 'user.json'
Step 3: Verify that the UI displays the user data from the fixture
✅ Expected Result: The UI shows user information exactly as defined in the 'user.json' fixture file, confirming the API response was mocked successfully.