question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Allow for an install of Vue.js Devtools

See original GitHub issue

Current behavior:

Vue tools is not active

I am running Cypress that is testing a site served by a live dev-server created with the Quasar-Framework. If I just visit the page as served in a normal browser that has VueJS Devtools installed, I can see a lot of information about vue state etc. It is invaluable for vuex etc. I installed the VueJS extension into the Cypress chrome browser, but it remains inactive.

screen shot 2018-05-18 at 22 26 22

Desired behavior:

I would also like to know exactly what the Vue state is while testing, because even though I can address it within a spec it would still be really nice to have.

Steps to reproduce:

start a development server at localhost:8080 with $ quasar dev npm run cypress opena properly rigged Vue.spec.js test with const getStore = () => cy.window().its('app.$store') Install the Vue Js Devtools as an extension in the Chrome browser started by cypress https://github.com/vuejs/vue-devtools See that the browser does not detect vue. 😦

Versions

Cypress package version: 2.1.0 MacOS v10.12.6 Chrome 65

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brian-manncommented, May 31, 2018

Instead of adding this to your index.html you can do the whole thing from inside of Cypress itself (so that its separated out from your app code. For instance… you could automatically do this on every visit or on every page load…

cy.visit('...', {
  onBeforeLoad: (win) => {
    const script = win.document.createElement('script')
    script.src = '...'
    win.document.body.appendChild(script)
  }
})

// or ...

Cypress.on('window:before:load', (win) => {
  // same thing here
})

P.S. I haven’t tried what I wrote above, but with the window:before:load hooks you can tap into your document before it loads and inject javascript or do whatever it is you want. You don’t even need to insert the <script> you could just implement exactly what the script itself does.

1reaction
nothingismagickcommented, May 19, 2018

Ok, thanks. I’ll ask over at vue-devtools - maybe you could leave this issue open for tracking until I resolve it? I will report in.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation | Vue Devtools
Installation # · Go to the extensions: · Click on the Details button on the Vue.js Devtools extension. · Open Menu and click...
Read more >
How To Debug Components, State, and Events with Vue.js ...
To install, first visit the Chrome Web Store. In the search bar in the top-left, search for “Vue Devtools”. You will find a...
Read more >
How to enable Vue devtools in production mode for chrome ...
First,use Vue devtools in Chrome ext Development environment is enabled. Experience. These days I'm developing a Chrome browser plugin.
Read more >
Vue Devtools: The Simplest Way to Debug Your Vue.js ...
There are three ways to install the Vue Devtools: ... This feature allows you to check the events triggered and inspect the payload...
Read more >
Speed up development with Vue DevTools - Medium
Are you still using console.logs to debug your Vue.js apps? Vue has a dedicated plugin that can help speed up your development.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found