https://cypress.io logo
Join Discord
Powered by
# cy10-feedback
  • p

    purple-salesclerk-94323

    08/18/2022, 4:10 PM
    There is no option to do it with Cypress 10
  • l

    late-planet-4481

    08/18/2022, 4:29 PM
    See Gleb's workaround: https://glebbahmutov.com/blog/run-all-specs-cypress-v10/
  • s

    stocky-bird-14088

    08/19/2022, 3:34 PM
    Hellooo 👋 I've got an issue with
    before:spec
    . Apologies if this isn't the right place to raise this - feel free to send me to the right place! Thought I'd post here before raising an issue on github, I searched the issues and couldn't find anything related
    before:spec
    is triggered
    when running cypress via cypress open, the event will fire when the browser launches
    This means that the values within
    spec
    are no longer filled - as before Cypress 10, the browser was launched after selecting a spec file. Is this a known issue / is there a workaround ?
  • s

    stocky-bird-14088

    08/22/2022, 8:40 AM
    Hellooo 👋
  • f

    fancy-airplane-60156

    08/23/2022, 11:41 AM
    Hi , I'm resuming my work on Cypress after 8 months hiatus. I upgraded the version to V 10.0.0. I see there's a lot of changes in the UI. Please suggest a best place to start learning about the changes and how I can still reuse my tests written in version 7.
  • a

    adorable-smartphone-87280

    08/23/2022, 1:10 PM
    Did you use this already? https://docs.cypress.io/guides/references/migration-guide
  • b

    best-flower-17510

    08/23/2022, 2:44 PM
    @fancy-airplane-60156 I would recommend starting at the changelog - https://docs.cypress.io/guides/references/changelog#10-4-0 I have also seen some great content from @nutritious-restaurant-91514 , @gray-kilobyte-89541 , @faint-spring-80499 and @most-carpenter-29893 around a few of these updates. I am sure they will share it in this thread 😀
  • m

    most-carpenter-29893

    08/23/2022, 9:20 PM
    I have a lesson more from a fresh start perspective :

    https://youtu.be/oBU8fg1WW2Uâ–¾

    But it should help with understanding the new experience so you can later follow a migration process that works for you 🌹
  • f

    fancy-airplane-60156

    08/24/2022, 11:44 AM
    Thank you so much. Let me check this now.
  • a

    aloof-ram-15411

    08/25/2022, 3:26 AM
    The testrail cli tool though is using python but works like a charm. No need to indicate the test case id on the scenario and auto uploads test cases and results 🙂
  • a

    alert-area-86576

    09/01/2022, 2:40 PM
    Hello, I am getting cucumber preprocessor plugin error on migrating to 10.0 version
  • w

    wonderful-match-15836

    09/01/2022, 5:05 PM
    Cucumber
  • a

    alert-area-86576

    09/01/2022, 5:34 PM
    I am trying to migrate to 10.0 version but I am not getting migration helper option., which will migrate config to new version. Any pointers?
  • w

    wonderful-match-15836

    09/01/2022, 9:27 PM
    are you running
    cypress open
    ? What do you see when you do?
  • r

    rough-vr-32180

    09/04/2022, 2:15 PM
    Hi everyone. Is there a way to pass devServer using the Cypress node API?
  • f

    fierce-activity-35946

    09/07/2022, 1:02 PM
    Hi all, after upgrading Cypress from 9.7.0 > 10.7.0 I see this error when I run commands: Is this error familiar? My node version is 16.17.0
    Copy code
    Error [ERR_LOADER_CHAIN_INCOMPLETE]: 
    "file:///Users/test/Library/Caches/Cypress/10.7.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/esm/transpile-only.mjs 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include `shortCircuit: true` in the hook's return.
        at new NodeError (node:internal/errors:387:5)
        at ESMLoader.resolve (node:internal/modules/esm/loader:852:13)
        at async ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:7)
        at async Promise.all (index 0)
        at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
        at async loadESM (node:internal/process/esm_loader:91:5)
        at async handleMainPromise (node:internal/modules/run_main:65:12) {
      code: 'ERR_LOADER_CHAIN_INCOMPLETE'
    }
  • s

    stale-optician-85950

    09/07/2022, 1:16 PM
    I reckon you've hit this open bug with Node 16.17.0 https://github.com/cypress-io/cypress/issues/22795 The workaround is to run Node version 16.16.0
  • f

    fierce-activity-35946

    09/07/2022, 3:16 PM
    Thanks, checking...
  • f

    freezing-wall-7568

    09/08/2022, 2:01 PM
    hey guys, when running tests in ci using 10.0.0 I get the following errors, does anyone know if there is a work around/fix for it
  • f

    freezing-wall-7568

    09/08/2022, 2:01 PM
    libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [16299:0908/130819.131787:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [16299:0908/130819.139899:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
  • f

    freezing-wall-7568

    09/08/2022, 5:27 PM
    seems like the issue is with electron/default browser
  • f

    freezing-wall-7568

    09/08/2022, 5:27 PM
    switching the browser fixed the issue
  • a

    alert-area-86576

    09/08/2022, 7:34 PM
    Hello, I have migrated to cypress latest version and trying to execute in dashboard on chrome and edge browser execution gets stuck on first test itself, I have logs where it says browser not installed. Anybody facing same issue? What is the solution?
  • r

    rhythmic-army-81251

    09/08/2022, 10:04 PM
    Hi All, Just have attempted migration on a monorepo moving cypress 9 -> 10 with applications using vite and vue 3. A behaviour that was working before was resolving a vite config that included aliasing paths e.g.
    Copy code
    ts
    export default defineConfig({
      // ...
      resolve: {
        extensions: ['.ts', '.js', '.json'],
        alias: {
          '@this-lib': path.resolve(__dirname, './src'),
          '@other-lib': path.resolve(__dirname, '../other-lib/src'),
        },
      },
    });
    But when running the spec file
    Test.spec.ts
    below:
    Copy code
    ts
    import { SomeEnum } from "@other-lib/SomeEnum";
    
    describe('test', () => {
      it('should work', () => {
        cy.log('test' + SomeEnum.Cow);
      });
    });
    I get the output:
    Copy code
    The following error originated from your test code, not from Cypress.
    
    > Failed to fetch dynamically imported module: http://localhost:8080/__cypress/src/src/specs/Test.spec.ts
    
    When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
    
    Cypress could not associate this error to any specific test.
    
    We dynamically generated a new test to display this failure.
  • r

    rhythmic-army-81251

    09/08/2022, 10:05 PM
    This was resolving aliasing with version 9 of cypress and I'm trying to figure out why this is no longer the case
  • r

    rhythmic-army-81251

    09/08/2022, 10:05 PM
    Cypress config looks like:
    Copy code
    ts
    export default defineConfig({
      ...cypressComponentConfig,
      projectId: '3FAxCE',
      component: {
        specPattern: '**/*.spec.ts',
        excludeSpecPattern: '**/*.{json,js}',
        supportFile: 'src/support/index.ts',
        indexHtmlFile: 'src/support/index.html',
        devServer: {
          bundler: 'vite',
          framework: 'vue',
        },
      }
    });
  • r

    rhythmic-army-81251

    09/08/2022, 10:05 PM
    I have tried with
    viteConfig
    property importing the
    vite.config.ts
    to no avail
  • m

    mysterious-motherboard-13344

    09/09/2022, 11:36 AM
    Hi .... After upgrading to 10.3.0 version, I have observed tremendous speed improvements on local run on MacBook Pro M1. But does anyone have feedback about speed improvements on CI run which is Linux / Unix based server?
    v
    • 2
    • 1
  • v

    victorious-father-41976

    09/09/2022, 11:47 AM
    Hi After upgrading to 10 3 0 version I
  • v

    victorious-father-41976

    09/09/2022, 12:51 PM
    Cypress config looks like
1...1415161718Latest