cypress-svelte-unit-test icon indicating copy to clipboard operation
cypress-svelte-unit-test copied to clipboard

Old path stuck in preview

Open ambrt opened this issue 5 years ago • 0 comments

I'm loading whole app into Cypress. I route pages of app with url prop for example:

it('Homepage', () => {
  mount(App, {
    props: {
      url: '/',
    },
  },  { cssFile: 'public/bundle.css'})
  cy.contains('span', '33333')
})

I also can access Login page with props:{url:'/login'}.

Problem occurs when i do them in succession (one it() after another) The Homepage is show for both it(), basically - Login page doesn't show up.

ambrt avatar Aug 19 '20 12:08 ambrt