Closed ShubhamPalriwala closed 1 year ago
The issue could be you need @electron/remote
to have the newest spectron working. Which isn't supported yet by the current released and master version. A PR is open for this. But as I am working on getting Playwright support. As spectron is deprecated, don't expect any release untill the playwright support is fixed.
Check my own projects to see the changes I made to get electron 17 working in combination with spectron 19, https://github.com/tue-robotics/hero-dashboard or https://github.com/tue-robotics/hero-display
Describe the bug The auto-generated
electron.spec.js
returns an error as follows:A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
electron-wrapper
branchcd td.vue
to get into the vue code directorypnpm i
to get all the dependenciesyarn run test:unit
Expected behavior The auto-generated spectron test should pass as default!
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
terminal output from running
vue info
:Additional context I have upgraded Electron to the latest v17.0.0 and Spectron to v19.0.0. I tried with the latest alpha pre-release too but it still fails