Closed
Description
Current behavior:
There's not an easy to know or correlate multiple matched XHR aliases to knowing how to wait for them.
Here's an example screenshot:
The problem is that the user is trying to wait on the 2nd XHR. But since they've only added a single cy.wait("@getTable")
Cypress only waited on the first XHR to resolve.
Desired behavior:
When an XHR matches an alias multiple times we should add a number indicator next to it...
(XHR) /getTable @getTable
(XHR) /getTable @getTable.2
(XHR) /getTable @getTable.3
So then when adding code like:
cy
.wait("@getTable")
.wait("@getTable")
.wait("@getTable")
The command log would actually look like:
WAIT @getTable
WAIT @getTable.2
WAIT @getTable.3
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
bsmithEG commentedon May 26, 2018
Any news on this one? There's a circumstance where I need to actually check if the same XHR gets requested N times, so I'm encountering this issue.
itaykotler-fundbox commentedon Aug 8, 2018
Hi @brian-mann, any progress with this issue?
jennifer-shehane commentedon Aug 13, 2018
@bsmithEG There actually is an undocumented way to check the number of times an XHR was responsed to using
.all
on the alias.32 remaining items