Devtools extension in cypress component-tests says: "production mode / disabled" #2184
NiklasBeierl
started this conversation in
General
Replies: 1 comment
-
I am not sure this is relevant, but I am also getting this warning in cypress, DESPITE configuring these defines in my
What makes me suspicious is that this warning is absent when opening my app from the normal vite dev server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Synopsis
Vue.js devtools seem to detect vue but not allow inspection in a cypress-controlled chromium. Please don't derail the discussion to the external vue-devtools. To my understanding, sacrificing the ergonomics of having all devtools in one window shouldn't be necessary. Vue devtools work just fine viewing the entire application from the vite devserver.
I am making this a discussion instead of a bug report because I wouldn't know how to create a reproduction for this - which is required - and because it sits at the intersection with other tooling (cypress). I would be very glad about hints how to create a good repro of this and peoples experiences with a similar setup.
Versions:
Vue devtools: 6.6.3 and 7.0.0 beta 6
Chromium: 128.0.6613.36
Expected
I installed vue-devtools (current and beta) in a chromium embedded in cypress. I would expect to be able to inspect vue components rendered for component-tests.
Actual
As soon as a test is started, clicking the extension says:
What I tried
None of these produced the desired outcome with either the current or beta versions of vue-devtools.
Setting
__VUE_PROD_DEVTOOLS__ = true
See my
cypress.config.ts
below. Interestingly, if i evaluatewindow.__VUE_PROD_DEVTOOLS__
in the iframe that is used to render components for tests, i gettrue
. So this might be considered a regression from: #353 ?Vue.config.devtools = true
As far as I understand, this is deprecated, but I tried anyways...
The "Vue force dev" extension
Didn't enable the devtools either.
Related Issues
Iframe-Support was discussed in #353 and considered implemented, so I am very supprised this doesn't work.
There is this issue on the cypress repo, which discusses this problem from cypresses side, but that was also before the devtools implemened iframe support.
Beta Was this translation helpful? Give feedback.
All reactions