ancient-notebook-96284
11/03/2022, 8:07 PMgentle-processor-97604
11/03/2022, 8:10 PMancient-notebook-96284
11/03/2022, 8:13 PMgifted-van-38756
11/03/2022, 8:13 PMancient-notebook-96284
11/03/2022, 8:14 PMgentle-processor-97604
11/03/2022, 8:16 PMancient-notebook-96284
11/03/2022, 8:18 PMgentle-processor-97604
11/03/2022, 8:22 PMchilly-queen-22182
11/03/2022, 8:44 PMcolossal-forest-745
11/03/2022, 9:00 PMcolossal-forest-745
11/03/2022, 9:01 PMlate-planet-4481
11/03/2022, 9:19 PMcy.intercept()
before the click, then wait for the request after the click. This is a less preferable approach, since a) it's a bit messy in the code, and b) an XHR response is not always sufficient evidence that the UI is ready for more clicks.
Also be sure to look at the steps before the issue occurs. Sometimes the variance happens before you notice it, when the page is accumulating state.
> It also seems like Cypress is telling us the request is never being made. However, we can see the request being made and not being stubbed even with a cy.intercept().
This tells me you did not get the pattern correct for the cy.intercept()
. Make sure your intercept results in an alias, then look for the alias to appear in the Test Runner log. This way you can tweak the pattern until you see the alias bubble show up.careful-toothbrush-49639
11/03/2022, 10:14 PMcareful-toothbrush-49639
11/03/2022, 10:15 PMlate-planet-4481
11/03/2022, 10:46 PMgray-kilobyte-89541
11/03/2022, 10:53 PMcy.contains
or cy.get().should('have.text'...)
. Input elements have values, so something like cy.get('input#name').should('have.value', 'hello')
delightful-engineer-44693
11/04/2022, 6:46 AMdelightful-engineer-44693
11/04/2022, 6:47 AMstale-optician-85950
11/04/2022, 8:46 AM/fixtures/
which contains all test data for these 70+ websites (i.e. 70+ objects within 1 JSON file). This JSON data file is imported before Cypress launches making our tests dynamic, meaning that I can add more objects (websites) to the JSON and the Cypress test will automatically run these as additional sites as news tests without me needing to change the test code.limited-fish-66138
11/04/2022, 10:30 AMrough-agent-43374
11/04/2022, 12:19 PMrough-agent-43374
11/04/2022, 12:21 PMrough-agent-43374
11/04/2022, 12:23 PMrough-agent-43374
11/04/2022, 12:23 PMstale-optician-85950
11/04/2022, 1:12 PM/e2e
is not correct. So you got that error because of running Cypress from inside /e2e
folder.
You run Cypress command from the root, i.e. same level as the Cypress folder (not inside of it). Also remove that cypress.config.js
from inside e2e
and put it also on the root.kind-soccer-81562
11/05/2022, 9:44 PMkind-soccer-81562
11/05/2022, 10:09 PMgray-helmet-2693
11/07/2022, 9:01 AMfresh-doctor-14925
11/07/2022, 9:23 AMcy.request()
, or calls being made by your application?stale-policeman-71052
11/07/2022, 12:50 PM