Verify HTTP request properties on form submission
Preconditions (3)
Step 1: Enter 'Alice' in the name field
Step 2: Enter 'alice@example.com' in the email field
Step 3: Enter 'Hello, this is a test message.' in the message field
Step 4: Click the submit button with id 'submit-btn'
Step 5: Intercept the POST request to '/api/contact'
Step 6: Assert that the request method is POST
Step 7: Assert that the request body contains the entered name, email, and message
Step 8: Assert that the request headers include 'Content-Type' with value 'application/json'
✅ Expected Result: The POST request to '/api/contact' is sent with correct method, headers, and body matching the form inputs