Discussions
HTTP Headers
almost 10 years ago by Motig
Hello
Is there a way to detect the header response, when the form is submitted?
For example
SUT.FindFormFor<RegistrationViewModel>()
.Field(x => x.Email)
.SetValueTo("[email protected]")
.Field(x => x.Password)
.SetValueTo("12345")
.Submit();
At this point, if the response is HTTP 500, the testing goes on. "When" does not fail. Is there a way to assert that the response must be HTTP 200?