You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to verify that a specific xhr request only happens once. I am making a POST request across domains, which means it sends an OPTIONS request first. When I look at the requests that are returned from browser.getRequests(), I see two requests, but the method on both of them is POST, when the method on the first request should be OPTIONS. Additionally, the response code seems to be the same on both requests, but for OPTIONS our server sends a 204, and for the actual POST, our server sends a 200.
I'd like to be able to see which one is the OPTIONS and which one is the POST, so I can filter out the OPTIONS request in this case.
The text was updated successfully, but these errors were encountered:
This is actually a good first issue for anyone who'd like to help out. I'm sorry, I don't have much time these days. I might get to it eventually though. We might be able to detect OPTIONS requests as well but that would require some messing about and testing. In the best case we'd add a test case for this as well.
I am trying to verify that a specific xhr request only happens once. I am making a POST request across domains, which means it sends an
OPTIONS
request first. When I look at the requests that are returned frombrowser.getRequests()
, I see two requests, but the method on both of them isPOST
, when the method on the first request should beOPTIONS
. Additionally, the response code seems to be the same on both requests, but forOPTIONS
our server sends a204
, and for the actualPOST
, our server sends a200
.I'd like to be able to see which one is the
OPTIONS
and which one is thePOST
, so I can filter out theOPTIONS
request in this case.The text was updated successfully, but these errors were encountered: