Closed kimsupin closed 1 year ago
I run dev serve(vite dev serve), then run e2e test code. I found that when I visit page that is imported dynamic,
[router.ts]
component: () => import('@/testComponent.vue'),
cy.visit() is completed not completing onBeforeLoad callback.
That makes my test code fail.. when I build my source code, then run test, cy.visit() is completed after completing onBeforeLoad callback.
[versions] "cypress-vite": "^1.4.0", "vite": "3.2.5",
I run dev serve(vite dev serve), then run e2e test code. I found that when I visit page that is imported dynamic,
[router.ts]
cy.visit() is completed not completing onBeforeLoad callback.
That makes my test code fail.. when I build my source code, then run test, cy.visit() is completed after completing onBeforeLoad callback.
[versions] "cypress-vite": "^1.4.0", "vite": "3.2.5",