As someone who is relatively new to cypress.io, I am currently working on a post call that returns a json object.
Following the documentation provided by cypress.io, I have implemented the code snippet below:
expect(response.body).to.have.property('code','unauthorized')
However, when I execute the test, I encounter the following error:
https://i.sstatic.net/clxPV.png
If anyone can provide guidance on how to resolve this issue, it would be greatly appreciated.
Thank you in advance.