Fixture typing
Hi guys,
I am implementing E2E tests in my Nuxt app and I would like to use the Page Object Model (POM) and fixtures patterns.
In my POM, I have this code :
Note how I have imported
Now in my fixtures, I have this code:
Here I have to cast
Is it the expected way to do it ? Or is there a better way to handle this ?
I am implementing E2E tests in my Nuxt app and I would like to use the Page Object Model (POM) and fixtures patterns.
In my POM, I have this code :
Note how I have imported
NuxtPage from @nuxt/test-utils so I can pass 'hydration' as an option to goto.Now in my fixtures, I have this code:
Here I have to cast
page to NuxtPage or else, typescript will complain.Is it the expected way to do it ? Or is there a better way to handle this ?
