Say I have an angular page with several input elements and a save button. After clicking the "Save" button, a POST request will be sent. I am writing a Protractor e2e test for this page.
Question:
How can I check the payload data of a POST request after sending the application or before sending? I want to be sure that my application will send the correct data to the POST request.
Following @Andres D comment: yes, there is a misconception here.
protractor - , . , , - , ..
protractor
, , , , js - , .
FYI, protractor-http-mock, , .
protractor-http-mock