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

    late-planet-4481

    06/24/2022, 2:47 PM
    If you launch like this it'll skip the e2e/Component selection. Does this help?
    npx cypress open --e2e
  • d

    dry-restaurant-29660

    06/24/2022, 2:49 PM
    Yeah, I'm using the module API like this,
    cypress.open({ project: projectDir, configFile: configFilePath, testingType: "e2e", browser: "chrome" })
    and it's absolutely fine. Just in an ideal scenario, i'd be able to prevent a user from going back to the project page and clicking the component section and causing it to create a load of files
  • l

    late-planet-4481

    06/24/2022, 2:49 PM
    Ahh, gotcha.
  • d

    dry-restaurant-29660

    06/24/2022, 2:50 PM
    at the end of the day, i can tell people not to do it, but you just know someone will πŸ˜„
  • r

    rough-van-84956

    06/27/2022, 3:06 AM
    Great work on cy10. My only gripe is that it takes me three clicks to resume Auto-scrolling... after a single (sometimes careless) swipe disables it. Have I missed something? (Cypress 10.2.0 on macOS 12.4 Monterey)
  • r

    rich-pharmacist-74804

    06/27/2022, 10:37 AM
    I am not able to figure out the actual issue caused by cypress 10. In the middle of the running test, it stops executing and it gets hanged and I have to stop forcefully. The same code is running perfectly in the previous version of cypress. if anyone faces a similar issue and got a solution please help me out.
  • a

    agreeable-painting-90494

    06/27/2022, 10:55 AM
    Hi Folks, anyone else having trouble running cy10 on CI? Our setup was working fine on gitlab CI with cy9, but with cy10 we get
    Copy code
    libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
    [491:0626/135959.592121:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
    [491:0626/135959.594708:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
  • a

    agreeable-painting-90494

    06/27/2022, 10:55 AM
    I updated to the latest docker container, but no luck
  • a

    agreeable-painting-90494

    06/27/2022, 11:02 AM
    Should I raise a bug?
  • a

    agreeable-painting-90494

    06/27/2022, 12:58 PM
    Is there maybe a way to disable GPU on cypress itself? I have disabled it on the browser, but it fails before the browser is launched
  • a

    agreeable-painting-90494

    06/27/2022, 12:59 PM
    I'm using the image
    cypress/browsers:node14.15.0-chrome96-ff94
    and I've disabled video
  • l

    late-planet-4481

    06/27/2022, 1:00 PM
    It sounds like a bug. Is it always hanging at the same spot, and if so, what was the last successful command, and what was the upcoming command?
  • a

    agreeable-painting-90494

    06/27/2022, 1:06 PM
    @rich-pharmacist-74804 I've had similar with cy9, it just hangs forever on CI occasionally, can't see a pattern to it yet.
  • l

    late-planet-4481

    06/27/2022, 1:29 PM
    Any errors in Dev Tools console?
  • a

    agreeable-painting-90494

    06/27/2022, 1:30 PM
    This is on CI unfortunately, works fine locally
  • l

    late-planet-4481

    06/27/2022, 1:30 PM
    Do you use the same
    --browser
    in CI?
  • a

    agreeable-painting-90494

    06/27/2022, 1:31 PM
    Yep, chrome
  • a

    agreeable-painting-90494

    06/27/2022, 1:31 PM
    Could perhaps try electron to see if it helps
  • l

    late-planet-4481

    06/27/2022, 1:32 PM
    Grasping at straws: you could try reducing the memory footprint by adjusting
    numTestsKeptInMemory
    .
    a
    • 2
    • 8
  • r

    rich-pharmacist-74804

    06/27/2022, 2:19 PM
    @agreeable-painting-90494 @late-planet-4481 in my cases, I see no error. After the footprint check step, I have cy.wait() then it stops my test and hangs forever. It happens only on that same step. I tried electron, chrome, and firefox but the same in all.
  • l

    late-planet-4481

    06/27/2022, 2:21 PM
    Cypress is punishing you for using a static wait πŸ˜„
  • l

    late-planet-4481

    06/27/2022, 2:23 PM
    In your runner, you might use Shift+Esc to bring up Chrome's task manager, then watch the memory footprint of the test runner. Maybe it starts to grow out of control at some point?
  • r

    rich-pharmacist-74804

    06/27/2022, 2:27 PM
    @late-planet-4481 Due to some delay in loading, I use static wait. No, I have not used Shift+Esc any in my test. The same code perfectly works in the previous version.
  • l

    late-planet-4481

    06/27/2022, 2:27 PM
    > The same code perfectly works in the previous version. Yeah, maybe there's a new memory leak in C10 somewhere πŸ€·β€β™‚οΈ
  • r

    rich-pharmacist-74804

    06/27/2022, 4:44 PM
    @late-planet-4481 might be. I am waiting next release with fixes😁 .
  • a

    adorable-action-72456

    06/28/2022, 7:19 AM
    Hello @late-planet-4481 , im trying to change the value of spec pattern via export CYPRESS_SPEC_PATTERN = "AnotherValue" but when run cypress nothing changed in the configuration and the value of CYPRESS_SPEC_PATTERN kept as before in the e2e variables in cypress.config.ts Not That all other variables works as expected like baseURL, just in case of change spec pattern. Is there anything related to e2e config ? and the config file should be like this : e2e: { env { } } or ------ env { } e2e: { }
  • p

    proud-cpu-57518

    06/28/2022, 9:47 AM
    Hello, I'm looking for some help here Question: Does Cypress V10 support executing multiple projects? I have 2 different cypress projects and currently have trouble migrating spec patterns for one of them. The first project had no issues after the v10 update (I'm able to access spec files and execute tests) but the second one says: "We couldn't find any files matching the following spec patterns. You may need to move your specs or update your specPattern to find them."
  • a

    adventurous-dream-20049

    06/28/2022, 1:07 PM
    Can you provide a screenshot of the folder structure for the snowplow-micro-cypress project, please? Also, can you confirm you are using the latest Cypress version?
    p
    • 2
    • 4
  • d

    dry-furniture-93469

    06/28/2022, 3:21 PM
    Hey As mentioned here: https://docs.cypress.io/guides/references/configuration#e2e Did you try:
    Copy code
    ts
    import { defineConfig } from 'cypress'
    
    export default defineConfig({
      e2e: {
        specPattern: '...'
      }
    })
  • p

    proud-cpu-57518

    06/28/2022, 3:48 PM
    Can you people a screenshot of the
1...91011...18Latest