I have a problem regarding Cypress response evaluation. I'm intercepting a request and trying to get a field which is returned as "Undefined". Here is the structure of the response directly fetched from browser:
[{"hyperparams": {"param1": 50, "param2": 0.1}, "eval_score": 0.41176470588235303}]
The way that I try to get "eval_score" is follows:
cy.wait("@trial").then(({ response }) => {
expect(response.body[0]["eval_score"]).within(0, 5);
});
Your help would be appreciated. Thanks!