https://cypress.io logo
I figured it out, thanks for those who helped me! ...
# e2e-testing
f
I figured it out, thanks for those who helped me!
Copy code
cy.request({
        method: "GET",
        url: "https://my.api.site/customers/me",
      }).then((response) => {
        console.log(response.body.data.attributes.customerId);
      });
It's printing the Id properly, so I can go from there and assign the value to a variable. Didn't realize I had to chain every layer of the response body, but now I do