nutritious-megabyte-64190
11/11/2022, 2:57 PMcy.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 codegray-kilobyte-89541
11/11/2022, 3:33 PMnutritious-megabyte-64190
11/11/2022, 3:34 PMnutritious-megabyte-64190
11/11/2022, 3:49 PMboundless-egg-31682
11/11/2022, 8:16 PMenough-truck-68085
11/11/2022, 8:23 PMcy.wait('@request')
will only resolve once an actual request occurs.
The error you are receiving is suggesting that the request you are trying to spy on isn't actually getting called.
You need to ensure that request actually occurs and can validate this in the runner here in the #
of times the route was found. Right now it's 0.
Additionally, the test runner will output all network calls and provide you information if your intercept matched any request calls.boundless-egg-31682
11/11/2022, 8:26 PMenough-truck-68085
11/11/2022, 8:28 PM*
with a double wildcard **
in your urlboundless-egg-31682
11/11/2022, 8:51 PMgray-kilobyte-89541
11/11/2022, 8:52 PMboundless-egg-31682
11/11/2022, 8:53 PMacceptable-fall-11897
11/11/2022, 11:33 PMbillions-tomato-88210
11/12/2022, 2:07 AMstale-wire-41120
11/12/2022, 5:38 AMkind-artist-92362
11/13/2022, 8:38 AMkind-artist-92362
11/13/2022, 9:24 AMkind-artist-92362
11/13/2022, 9:24 AMkind-artist-92362
11/13/2022, 10:37 AMkind-artist-92362
11/13/2022, 10:37 AMkind-artist-92362
11/13/2022, 3:51 PMkind-artist-92362
11/13/2022, 3:55 PMgray-kilobyte-89541
11/13/2022, 10:42 PMaloof-psychiatrist-45078
11/14/2022, 8:24 AMfresh-doctor-14925
11/14/2022, 8:42 AMcy.wait()
, then cypress is responding when the endpoint returns something. So it looks like your application is occasionally returning an empty body. That's because the application is logging a 304 (not modified) erroraloof-psychiatrist-45078
11/14/2022, 8:49 AMnpx cypress open
and run the test first time, able to get the body response with 200 Status code
but when i re-run the test, this is the moment body responding empty response and with 304 Status Codefresh-doctor-14925
11/14/2022, 9:06 AMnpx cypress run
? I'm wondering if it's a shared context thingaloof-psychiatrist-45078
11/14/2022, 9:07 AMboundless-plastic-54849
11/14/2022, 9:09 AMboundless-plastic-54849
11/14/2022, 9:15 AMaloof-psychiatrist-45078
11/14/2022, 9:29 AMcy.task('log', response)
and this is the output