https://cypress.io logo
Join Discord
Powered by
# vue
  • l

    little-shampoo-74692

    04/15/2021, 8:33 PM
    Quick question for the group: can Cypress run a headless browser to do its tests?
  • s

    some-air-72294

    04/15/2021, 8:45 PM
    Yes, i think so https://docs.cypress.io/guides/guides/command-line#Commands
  • s

    some-air-72294

    04/15/2021, 8:45 PM
    using option
    --headless
  • r

    red-refrigerator-13075

    04/15/2021, 9:21 PM
    Hi again @User 😛 , this time I'm trying to access the wrapper just like Jess in the video BTW, I'm using the helper function we discuss to access the i18n plugin 💪
  • b

    bulky-sundown-74498

    04/15/2021, 9:22 PM
    What does your mount function look like ?
  • r

    red-refrigerator-13075

    04/15/2021, 9:23 PM
    ☝️
  • b

    bulky-sundown-74498

    04/15/2021, 9:23 PM
    you forgot to return the result
  • l

    little-shampoo-74692

    04/15/2021, 9:23 PM
    I was able to follow along nicely with the docs. Nice job on that! The Pluralsight courses I've found are not up-to-date in terms of using npm to install Cypress. Just a heads up there. But overall I like the ease of use and functionality.
  • b

    bulky-sundown-74498

    04/15/2021, 9:23 PM
    either remove the curly brackets
  • b

    bulky-sundown-74498

    04/15/2021, 9:24 PM
    or add
    return mount(component, options)
  • b

    bulky-sundown-74498

    04/15/2021, 9:26 PM
    That ... is probably a bug
  • r

    red-refrigerator-13075

    04/15/2021, 9:26 PM
    oh... nice xD
  • b

    bulky-sundown-74498

    04/15/2021, 9:26 PM
    but you can still use
    cy.then().vue()
  • b

    bulky-sundown-74498

    04/15/2021, 9:27 PM
    or even
    cy.vue()
    I believe
  • b

    bulky-sundown-74498

    04/15/2021, 9:29 PM
    Yep
  • r

    red-refrigerator-13075

    04/15/2021, 9:30 PM
    Still a bug or am I doing something wrong?
  • b

    bulky-sundown-74498

    04/15/2021, 9:30 PM
    I am looking into it
  • r

    red-refrigerator-13075

    04/15/2021, 9:30 PM
    ok ok, if you want you can use my code with this repo https://github.com/xanxuz/vue-cypress-ct
  • r

    red-refrigerator-13075

    04/15/2021, 9:31 PM
    You will only have to add those lines from the screenshot
  • b

    bulky-sundown-74498

    04/15/2021, 9:31 PM
    TYTYTY
  • r

    red-refrigerator-13075

    04/15/2021, 9:31 PM
    I've been using that repo since cypress ct v7.0.0 came out 😁
  • b

    bulky-sundown-74498

    04/16/2021, 2:19 PM
    Oh !!! my bad, this is what Jess did in her demo https://github.com/JessicaSachs/cypress-loves-vite/
  • b

    bulky-sundown-74498

    04/16/2021, 2:20 PM
    She added vue as a custom command
  • b

    bulky-sundown-74498

    04/16/2021, 2:20 PM
    look at
    cypress/support/index.js
  • b

    bulky-sundown-74498

    04/16/2021, 2:21 PM
    to have access to
    .vue().then(wrapper)
    you need to add
    Copy code
    js
    Cypress.Commands.add('vue', () => {
      return cy.wrap(Cypress.vueWrapper)
    })
  • b

    bulky-sundown-74498

    04/16/2021, 2:21 PM
    to your support file
  • b

    bulky-sundown-74498

    04/16/2021, 2:22 PM
    sorry for the confusion
  • b

    bulky-sundown-74498

    04/16/2021, 2:22 PM
    should I make a PR
  • b

    bulky-sundown-74498

    04/16/2021, 2:22 PM
    ?
  • r

    red-refrigerator-13075

    04/16/2021, 2:50 PM
    Hi @User , thanks for the help 😃 👍 , don't worry I'll try to add it myself.
1...192021...37Latest