acceptable-hamburger-48790
08/30/2022, 5:22 PMhundreds-shoe-33118
08/30/2022, 5:25 PMfreezing-wall-7568
08/30/2022, 7:42 PMhigh-scooter-38171
08/30/2022, 10:53 PMgray-kilobyte-89541
08/31/2022, 12:18 AMproud-breakfast-29892
08/31/2022, 9:59 AMbeforeEach
, I navigate to my designated page by using cy.visit
and then asserting the url contains the page name I wanted to navigate to. Sometimes it doesn't work, even after navigation the url does not contain it. I figured perhaps I use cy.visit
too early in my test, so I tried to intercept all requests from my app (When navigating to base url) prior to page navigation and wait for them to be finished. However, these requests aren't consistent and sometimes they won't happen because of cache. There is also no "page loaded" event firing when the load has been completed, so I can't rely on that. What can I do to ensure my navigation actually worked?prehistoric-restaurant-72560
08/31/2022, 10:05 AMstraight-chef-47891
08/31/2022, 11:30 AMthankful-vegetable-38026
08/31/2022, 11:40 AM@cypress/snapshot
to do what I want and can't seem to figure out how I could make it access the things within the it() functionsthankful-vegetable-38026
08/31/2022, 11:40 AMhttps://toaster.sh/i/oonnp.png▾
helpful-truck-53930
08/31/2022, 12:54 PMhelpful-truck-53930
08/31/2022, 1:01 PMbrave-notebook-55583
08/31/2022, 1:07 PMconst day = new Date()
const nextDay = new Date(day.getTime() + 1000 * 60 * 60 * 24)
purple-train-63923
08/31/2022, 1:10 PMsrc/
folder into cypress/
? I'm trying to use mock data from src in cypress integration tests, not component tests.
I am using the cypress/webpack-preprocessor in the plugins/index.ts. The mocks are typescript files. The error is that webpack is not looking for .ts
files even though I am importing the root webpack.config.ts and passing it through the webpackPreprocessor.
// plugins/index.ts
const webpackConfig = require('../../webpack.config')
...
on('file:preprocessor', webpackPreprocessor(webpackConfig))
hundreds-shoe-33118
08/31/2022, 1:13 PMcold-van-45410
08/31/2022, 1:33 PMgray-kilobyte-89541
08/31/2022, 1:38 PMthankful-vegetable-38026
08/31/2022, 1:50 PMhttps://toaster.sh/i/oonnp.png▾
thankful-vegetable-38026
08/31/2022, 2:05 PMCypress.currentTest
but that doesn't seem to work in Plugins anymoresome-furniture-77210
08/31/2022, 2:43 PMfreezing-wall-7568
08/31/2022, 3:27 PMaverage-train-81585
08/31/2022, 4:05 PM${Cypress.env("API_URL")}/**
, (request) => {
expect(request.url).to.equal(false);
});
});`gray-kilobyte-89541
08/31/2022, 4:37 PMincalculable-pager-85339
08/31/2022, 5:14 PMbitter-plumber-96398
08/31/2022, 5:57 PMinstrument-cra
module? It has some bugs and PRs, but no one seems to be looking at it.
https://github.com/cypress-io/instrument-cra/issues/225. <-- this issue is driving me insane, right now, and I would love a fix.prehistoric-restaurant-72560
08/31/2022, 6:00 PMfamous-analyst-30680
08/31/2022, 6:35 PM<iframe> PLaceholder for
My app isn't using iframes and this is making it hard for testing
Here is video
https://www.loom.com/share/b54522d95a48482aac41a86f53263857
Been stuck on this problem for a few days and any help would be much appreciated!prehistoric-restaurant-72560
08/31/2022, 8:34 PMuser
09/01/2022, 2:35 AMhelpful-tent-74010
09/01/2022, 5:05 AM