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

    rhythmic-army-81251

    09/11/2022, 11:36 AM
    Hi, facing an issue now with E2E tests after upgrading all the component tests to Cypress 10. I can list specs fine on the application
  • r

    rhythmic-army-81251

    09/11/2022, 11:36 AM
    when running the spec though I get
    Error: ENOENT: no such file or directory, stat 'C:\Users\xxx\AppData\Roaming\Cypress\cy\production\projects\app-xxx-e2e-test-72a6bc770aa417d8405513ba071465be\bundles\src\specs\EditItem.spec.ts'
  • r

    rhythmic-army-81251

    09/11/2022, 11:37 AM
    this leads me to believe I don't have something configured correctly due to it searching
    AppData\Roaming\Cypress
  • r

    rhythmic-army-81251

    09/11/2022, 11:38 AM
    config looks like:
    Copy code
    js
      {
        projectId: 'blah',
        fixturesFolder: 'src/fixtures',
        screenshotsFolder: 'src/screenshots',
        videosFolder: 'src/videos',
        userAgent: 'E2E',
        video: true,
        videoUploadOnPasses: false,
        defaultCommandTimeout: 12000,
        requestTimeout: 60000, // high due to engine api timeouts
        responseTimeout: 60000, // high due to engine api timeouts
        watchForFileChanges: false,
        retries: {
          runMode: 2,
          openMode: 0,
        },
        reporter: '../../node_modules/cypress-multi-reporters',
        reporterOptions: {
          configFile: '../../shared/cypress/reporter-config.json',
        },
        viewportWidth: 1280,
        viewportHeight: 800,
        e2e: {
          baseUrl: 'http://localhost:8080/',
          specPattern: '**/*.spec.ts',
          excludeSpecPattern: '**/*.{json,js}',
          supportFile: 'src/support/index.ts',
          setupNodeEvents(on, config): void {
            on('file:preprocessor', vitePreprocessor());
          },
        },
      }
  • e

    elegant-river-87347

    09/12/2022, 4:04 AM
    Hi anyone can help me pls, I'm migrating to cypress 10 and this is the error , when im trying to convert cypress.json to cypress.config.ts ,, here's my .ts file , thanks
  • e

    elegant-river-87347

    09/12/2022, 4:30 AM
    How can i seed whatever i have in cypress.json to here? Thanks
  • r

    rhythmic-army-81251

    09/12/2022, 7:05 AM
    Bad Config
  • r

    rhythmic-army-81251

    09/12/2022, 9:14 AM
    I have a bizarre error after upgrading to Cypress 10: we have some commands and test cases that use this class that extends Error:
    Copy code
    ts
    export class TaskError extends Error {
      public readonly payload: any;
    
      constructor(message: string, payload: any) {
        super(message);
        this.payload = payload;
      }
    }
  • r

    rhythmic-army-81251

    09/12/2022, 9:15 AM
    when referenced via tests Cypress silently fails (it just runs the last valid build)
  • r

    rhythmic-army-81251

    09/12/2022, 9:15 AM
    when I alter the class to (removing inheritance):
    Copy code
    ts
    export class TaskError {
      public readonly payload: any;
    
      constructor(message: string, payload: any) {
        this.payload = payload;
      }
    }
  • r

    rhythmic-army-81251

    09/12/2022, 9:15 AM
    the tests run as expected
  • r

    rhythmic-army-81251

    09/12/2022, 9:16 AM
    I can't for the life of me figure out why this happens, this was previously working with Cypress 9
  • r

    rhythmic-army-81251

    09/12/2022, 9:16 AM
    it seems like an easy fix to not use
    Error
    but we use many models in our test orchestration and they help with debugging
  • e

    elegant-river-87347

    09/14/2022, 11:21 AM
    Hi anyone can help me.. for my Cypress.env, usually we stored it in cypress.env.json, but its not working anymore when i migrate to cypress10.. i tried put the variables insides cypress.config.js still not working(note: variables are also stored in CI) , screeshot shows that it workings if i put the variables directly , without using Cypress.env
  • r

    rhythmic-army-81251

    09/14/2022, 10:34 PM
    Hi All, Since moving to Cypress 10 our CI is reporting a lot of these:
    We detected that the Chromium Renderer process just crashed.
    We use electron headless in our pipelines. This is specifically for
    --component
    tests. We get this error that seems to be reported in a number of places:
    [322421:0914/205055.359876:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
    Followed by this for each spec.
    Copy code
    [322451:0914/205113.932026:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205113.942475:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205113.953110:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205113.963339:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205113.983243:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322265:0914/205113.983422:ERROR:browser_child_process_host_impl.cc(750)] Terminating child process for bad message: Received bad user message: Validation failed for viz.mojom.CopyOutputResultSender.0  [VALIDATION_ERROR_DESERIALIZATION_FAILED]
    [322265:0914/205113.991876:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=15
    [322451:0914/205114.020878:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205114.030467:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205114.039277:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205114.046542:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    [322451:0914/205114.053789:ERROR:broker_posix.cc(46)] Received unexpected number of handles
    Any pointers as to what to look for here would be useful, the agents are ubuntu 20 (latest patches), all deps installed as per https://docs.cypress.io/guides/continuous-integration/introduction#Dependencies Prior to Cypress 10, no issues.
  • g

    glamorous-lighter-30340

    09/15/2022, 2:01 PM
    Can you run chrome headless or chromium instead of electron? I wonder if it’s an electron issue.
  • r

    rhythmic-army-81251

    09/15/2022, 2:40 PM
    I can try, this will be a little awkward as we will have to change our base image to install chromium, I'll feed back when I know more
  • m

    mysterious-belgium-25713

    09/19/2022, 11:17 AM
    I dont know if someone already replied to you but in the cypress.config.js file you add it like this.
    Copy code
    js
    const { defineConfig } = require("cypress");
    
    module.exports = defineConfig({
      e2e: {
        baseUrl: "https://staging-ordering.deve.nz",
        viewportHeight: 1920,
        viewportWidth: 1080,
        video: false,
        setupNodeEvents(on, config) {
        },
      },
    });
  • a

    adorable-easter-66676

    09/20/2022, 8:44 PM
    hi guys i am looking for an alternative to make cypress record the videos for each "it" instead of just one for the "describe" this would be ideal, if not i need a way to split the videos without having to modify my structure and code when implementing the tests.
  • p

    prehistoric-daybreak-60014

    09/21/2022, 1:56 AM
    Hey there, something that would be of infinite usefulness to us would be to be able to see the DevTools console in past video runs, either as part of the video or in a log somewhere else
  • p

    prehistoric-daybreak-60014

    09/21/2022, 1:59 AM
    Also on another note, since upgrading to Cypress 10 - Google Chrome crashes (get the 'Aw, Snap' screen - error code 5) when running tests of a certain length twice in a row. Workaround seems to be to set
    numTestsKeptInMemory: 0
    in the config. Is this a known issue?
  • v

    victorious-father-41976

    09/21/2022, 5:46 PM
    Hey there something that would be of
  • f

    famous-pencil-83242

    10/04/2022, 1:20 PM
    Hi Cypress, I'm trying to migrate from Cypress 9 to 10.9.0, but when I initiated the Migration Helper, it only changes the config files, the "Rename existing specs" step doesn't show anymore. Has this step been removed from the Helper?
  • p

    powerful-orange-86819

    10/05/2022, 8:46 AM
    I have a suggestion for the UI, to make things easier when working with many specs, because i'm constantly changing the specs i'm working on i would really love a favourite button that puts some specs on top, like playgrounds/testing specs
  • w

    wonderful-match-15836

    10/07/2022, 4:22 PM
    Hi Cypress I m trying to migrate from
  • w

    wonderful-match-15836

    10/07/2022, 4:23 PM
    I have a suggestion for the UI to make
  • m

    millions-electrician-95804

    10/13/2022, 9:54 AM
    Hello ,I am facing this issue - after upgrade v10.10.0 , all 2nd tests will get page clear and reset to blank page . I reverted back to v10.9.0 and encounter the same .. earlier with 10.9.0 it was a smooth test run between it blocks
  • m

    millions-electrician-95804

    10/13/2022, 10:03 AM
    can anyone help to see how to retain the webpage application without clear / blank page - I am using - "Cypress.Cookies.preserveOnce() and Cypress.Cookies.defaults()" for saving cookies ..
  • m

    millions-electrician-95804

    10/13/2022, 11:10 AM
    Hello ,I am facing this issue - after upgrade v10.10.0 , all 2nd tests will get page clear and reset to blank page . I reverted back to v10.9.0 and encounter the same .. earlier with 10.9.0 it was a smooth test run between it blocks . can anyone help to see how to retain the webpage application without clear / blank page - I am using - "Cypress.Cookies.preserveOnce() and Cypress.Cookies.defaults()" for saving cookies ..
  • i

    incalculable-rainbow-43330

    10/17/2022, 3:39 PM
    is there any feature in plan by Cypress to integrate its Dash Board into Azure Devops Board plugin using market place ? the intent is if everything stays at one place like even cypress staying in Azure dev ops board as plugin it will help project to have everything at once place
1...1415161718Latest