Document @alias.all and @alias.2
See original GitHub issueI’m submitting a…
[ ] Bug report
[x] Content update
[ ] Process update (build, deployment, ... )
Type of bug / changes
We should document the use of @alias.all and @alias.2 within a couple of documents:
- https://docs.cypress.io/guides/core-concepts/variables-and-aliases.html
- https://docs.cypress.io/api/commands/get.html#Alias
When referencing aliases, you can reference @alias.all or @alias.2 and it will return respectively all of the aliases of that name or the 2nd request matching the name.
Examples:
it("does not poll for list again", function() {
cy.wait("@getList");
cy.tick(10000);
// does not poll for another request
cy.get("@getList.all").should("have.length", 1);
});
it("first request has correct data", function() {
cy.route({
url: 'users',
response: 'fx:users'
}).as("getUsers");
cy.visit("/users");
cy.get("@getUsers.1").then((xhr) => {
expect(xhr.url).to.include("page=1"))
})
});
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Create and remove aliases on Mac - Apple Support
Select the item, then choose File > Make Alias. You can create as many aliases for an item as you want, then drag...
Read more >CREATE ALIAS - IBM
The CREATE ALIAS statement defines an alias on a table, partition of a table, view, or member of a database file at the...
Read more >What is an alias, and how do I create one? » Files & Sharing »
Files & Sharing » Mac » Tech Ease: An alias is a pointer to a file or folder ... if you have a...
Read more >Aliases | Apache Solr Reference Guide 8.1
By default, SolrCloud scores documents on a per-shard basis. ... There are presently two types of routed alias: time routed and category ...
Read more >Operations with aliases - SQL Complete - Documentation
SQL Complete automatically assigns an alias to each table, view, table-valued function, ... alias2 will be assigned to all objects starting with Product....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jennifer-shehane There is something that doesn’t make sense at this point how would the changing the wait to get.
how will cause cypress to wait. Am I missing something?
Please add this to the documentation and make it an official feature.