From c23b8313d2c1abd49dcacb7972ad07169db3a05a Mon Sep 17 00:00:00 2001 From: Mario Lopez Gallego Date: Wed, 1 Jun 2022 10:51:55 +0200 Subject: [PATCH] fix: http validation error to be in response body (#103) --- steps/http/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steps/http/session.go b/steps/http/session.go index 0ebc8f5c..229cda89 100755 --- a/steps/http/session.go +++ b/steps/http/session.go @@ -440,7 +440,7 @@ func (s *Session) ValidateResponseBodyText(ctx context.Context, expectedText str return nil } return fmt.Errorf("response payload: '%v' is not the expected: '%s'", - s.Request.RequestBody, expectedText) + s.Response.ResponseBody, expectedText) } // StoreResponseBodyJSONPropertyInContext extracts a JSON property from