fast-artist-45202
10/26/2022, 2:55 PMcy.intercept("GET", "*/customers/me").as("customerInfo");
cy.request({
method: "GET",
url: "https://my.api.site/customers/me",
}).then((response) => {
console.log(response.body);
});
cy.get("@customerInfo")
.its("response.body")
.invoke("attr", "customerId")
.then(($customerID) => {
console.log($customerID);
});
And I'm definitely seeing the info I need, it's structured like this: