diff --git a/features/step_definitions/request_steps.ts b/features/step_definitions/request_steps.ts index 0feb311fac0e..7350d08e160b 100644 --- a/features/step_definitions/request_steps.ts +++ b/features/step_definitions/request_steps.ts @@ -307,7 +307,7 @@ Then( Then( "the response {string} does not have field {string}", function (this: World, responsePath: string, field: string) { - expect(pathLookup(this.response, responsePath)).to.not.have.property(field.toAttributeName()); + expect(pathLookup(this.response, responsePath)[field.toAttributeName()]).to.be.undefined; } );