https://cypress.io logo
attempting to recurse an api call using cy.waitUnt...
# e2e-testing
n
attempting to recurse an api call using cy.waitUntil() and we had the brilliant idea of using the property called `status `that gives us the go or no go however when i attempt to do something like so
Copy code
cy.waitUntil(
            () => {
                cy
                    .request({
                        method: 'GET',
                        headers: {
                            'token': accessToken
                        },
                        url: `api/is-ready`,
                        failOnStatusCode: false
                    }).its('status').should('eq', 'READY');

                    assertexpected 200 to equal **READY**
is there a way to access my 'status' and not the actual status code