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

    stocky-dream-36427

    02/03/2021, 1:38 AM
    API should be the same, but the subcommand will change. (old one will also still work -- unchanged ) I'll ping you when it comes out so you can play. It'll open up widely in about 4 weeks, but we're trying to get feedback early
  • b

    breezy-australia-64868

    02/03/2021, 1:46 AM
    oh very cool. definitely - would love to try it! πŸ™‚
  • a

    astonishing-football-22754

    02/08/2021, 3:08 PM
    Hi everyone, just got here while testing @cypress/vue (1.0.0-alpha.4), Im trying out the manual installation (my client project doesn't use vue-cli) and I'm getting an Unexpected Error occurred:
    TypeError: cannot read property 'rules of undefined
    From
    cypress/plugins/index.js
    preprocessor(on, config)
    step. Somebody went trough something similar? Thanks in advance
  • s

    stocky-dream-36427

    02/09/2021, 4:53 PM
    Not using Vue CLI will be tricky @User
  • a

    astonishing-football-22754

    02/09/2021, 5:17 PM
    Actually I raised a ticket https://github.com/cypress-io/cypress/issues/14973, because the error occurs only in the dist generated file for
    preprocessor/webpack.js
    , the source coude in the repo is correct
  • s

    stocky-dream-36427

    02/09/2021, 5:18 PM
    Do you have the webpack config and the integration code inside of plugins?
  • s

    stocky-dream-36427

    02/09/2021, 5:18 PM
    I need to know what webpack version, too
  • s

    stocky-dream-36427

    02/09/2021, 5:20 PM
    Essentially this part of your webpack configuration is empty/null
  • s

    stocky-dream-36427

    02/09/2021, 5:20 PM
    Adding this to your webpack config should work.
    Copy code
    module: {
      rules: []
    }
  • s

    stocky-dream-36427

    02/09/2021, 5:21 PM
    We're rewriting this code completely and shipping that very very shortly so we could fix it if this workaround doesn't work. Basically, we are removing preprocessor and all of this "one off" logic that assumes your webpack configuration is in a certain shape. We're switching to webpack-dev-serveer.
  • s

    stocky-dream-36427

    02/09/2021, 5:22 PM
    It's pretty unusual that webpack contains no rules. I suppose you don't transpile your code with babel or generate scss, etc
  • s

    stocky-dream-36427

    02/09/2021, 5:26 PM
    Responded in the issue, too.
  • s

    stocky-dream-36427

    02/09/2021, 5:26 PM
    Thanks for getting on Discord -- we're much better responding on here. Since you're not using a "normal/common" webpack install, would you be interested in testing out our new architecture when it lands? Depending on how big your project is... it's as fast are your dev-server πŸ™‚
  • a

    astonishing-football-22754

    02/10/2021, 7:19 PM
    Sure thing, is a big one, lets do it
  • a

    astonishing-football-22754

    02/10/2021, 7:19 PM
    I already sould out the whole idea of e2e to the client and PM, so it's on
  • s

    stocky-dream-36427

    02/11/2021, 12:35 AM
    LOL
  • s

    stocky-dream-36427

    02/11/2021, 12:36 AM
    Hmm, this is actually for component testing not E2E.
  • s

    stocky-dream-36427

    02/11/2021, 12:36 AM
    E2E works with any framework because you have to bundle and serve your app. Component Testing is where you import your components and mount them (like Jest + Vue Test Utils)
  • a

    astonishing-football-22754

    02/11/2021, 9:46 AM
    I know hehe, wanted to comment that they're already open to testing which is not always easy to convince from business side πŸ˜…. I want to substitute the unit testing with this Component Testing that's why I'm interest, e2e are already in progress
  • s

    stocky-dream-36427

    02/11/2021, 5:28 PM
    Well I'll ping you when it's out ^.^
  • s

    some-finland-74005

    02/26/2021, 8:45 PM
    Hi all, jr dev here trying to experiment with component testing. I am having difficulty getting Bootstrap/Vue to display in my tests. Not sure if I'm missing a loader or not understanding mount options etc.
  • s

    some-finland-74005

    02/26/2021, 8:49 PM
    Score.spec.js:
    Copy code
    import bootstrapVue from '@/src/plugins/bootstrap-vue';
    mount(Score, {
      use: [bootstrapVue],
      propsData: {
        isEditable: true,
      },
    });
    Cypress.vue.status.loading = true;
    
    cy.get('div.spinner').should('exist');
  • s

    some-finland-74005

    02/26/2021, 8:51 PM
    ^^ Much simplified version. BootstrapVue is Vue.use(bootstrapvue)'d in that plugins folder bootstrap-vue.js file. (applied as plugin to main.js) in Vue CLI app.
  • s

    some-finland-74005

    02/26/2021, 8:51 PM
    I'm just getting plain HTML parts to show up.
  • s

    some-finland-74005

    02/26/2021, 8:54 PM
    Score.vue:
    Copy code
    <template>
      <div
        class="form-group my-5 score-editor"
        :class="{
          'spinner spinner-right': status.loading,
          errors: hasErrors,
          success: status.success,
        }"
        v-if="isEditable"
    >
      <input ... >
    </template>
  • n

    nice-scientist-9281

    02/28/2021, 6:07 PM
    Will the
    @cypress/vue
    3.0.0-alpha releases at https://www.npmjs.com/package/@cypress/vue work with Vite? Eager to start testing things out! 😁
  • b

    breezy-australia-64868

    03/01/2021, 4:44 AM
    Looks like it’s a syntax thing? If you look at the docs the extensions need to be passed in as an extensions object like β€˜mount (Score, { extensions: { use... }})
  • s

    some-finland-74005

    03/01/2021, 4:46 AM
    I'll give it a shot.
  • s

    some-finland-74005

    03/01/2021, 7:01 PM
    @User I gave it a shot and basic HTML cy.get() works, but I don't visually see bootstrap element spinner in the window.
  • s

    stocky-dream-36427

    03/04/2021, 3:58 AM
    oh, catching up to this now!
1...456...37Latest