question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document @alias.all and @alias.2

See original GitHub issue

I’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:

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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
martinrojascommented, Oct 14, 2021

@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?

3reactions
JensRolandcommented, Mar 17, 2021

Please add this to the documentation and make it an official feature.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found