https://cypress.io logo
Join Discord
Powered by
# help
  • r

    rhythmic-army-81251

    11/28/2022, 12:22 PM
    upgraded from cypress 10 to 11
  • r

    rhythmic-army-81251

    11/28/2022, 12:22 PM
    now getting
  • r

    rhythmic-army-81251

    11/28/2022, 12:22 PM
    Error: ENOENT: no such file or directory, copyfile '/home/AzDevOps/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/config/app.yml' -> '/home/AzDevOps/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/config/_app.yml'
  • r

    rhythmic-army-81251

    11/28/2022, 12:23 PM
    command
    cypress run --component
  • c

    careful-toothbrush-49639

    11/28/2022, 1:07 PM
    Please I still need your help on this.
  • f

    fresh-doctor-14925

    11/28/2022, 1:08 PM
    Please don't spam the channels with duplicates and bumps. This will be the fourth time you've posted regarding this From the #763097415896268840 channel: > Ask your question in a help channel and wait for a response We get a lot of questions on here, and I tend to go for questions that are: 1) Detailed 2) Not things that can be answered with a Google search So you'd be more likely to get an answer if you outline what you've already tried by looking through existing articles and docs
  • m

    magnificent-baker-97250

    11/28/2022, 1:20 PM
    Hi, all. Could some one help with such problem. I am using cy.session command in beforEach hook in my tests. I am passing there - ( name,password and random uuid). But when I try to run this tests in paralell , some times my session is being cleared when tests is running. How to fix it? Using buildkite and knapsack Pro, Cypress 11.2.0
  • f

    fresh-doctor-14925

    11/28/2022, 1:29 PM
    Are you passing the option to cache the session between tests?
  • m

    magnificent-baker-97250

    11/28/2022, 1:34 PM
    If you are talking about cacheAcrossSpecs : true - no, I am not, but I am using the cacheSession = true , I can send you a command
  • m

    magnificent-baker-97250

    11/28/2022, 1:37 PM
    This is command I use
  • m

    magnificent-baker-97250

    11/28/2022, 1:38 PM
    I even added this if else condition to prevent , but it is not working because session was already created and saved, and when few tests passed and after that session was cleared - it is trying to load old session and being redirected to login page (
  • f

    fresh-doctor-14925

    11/28/2022, 1:44 PM
    The if-else is adding complexity. Are there scenarios where you wouldn't want to use the cached session? I see it defaults to true anyhow
  • m

    magnificent-baker-97250

    11/28/2022, 1:45 PM
    No, I just thought it would help)) w.e it is happening with this if-else or with out it
  • f

    fresh-doctor-14925

    11/28/2022, 1:46 PM
    > when few tests passed Just so I'm clear, you're talking about within the same spec file?
  • m

    magnificent-baker-97250

    11/28/2022, 1:50 PM
    Yes, for example I have 60 spec files, running on 10 machines. And in 1 spec file there are 6 tests. Some times it happens that 4 tests passed, and while was running 5 test - I get cleared session. I think it is because other spec file finished - and cleared session. But in the logic - it should not impact because I create session with uniqueKey to avoid such problem
  • f

    fresh-doctor-14925

    11/28/2022, 1:53 PM
    A couple of suggestions: 1) Remove the if/else and place your login command inside cy.session 2) Set
    cacheAcrossSpecs
    to
    true
    . The unique id should prevent collisions (though I'm not convinced that you need multiple unique IDs unless multiple user accounts are being used)
  • b

    boundless-needle-99612

    11/28/2022, 2:08 PM
    My cypress automation is working in test environment but in my uat env it is failed in ping authentication , it is getting 403 forbidden, any idea what is the issues. FYI the uat env is working in browser when i run ma uat
  • l

    late-planet-4481

    11/28/2022, 3:44 PM
    You'll need to work with your system administrators to see if there's traffic being blocked between the machine hosting the tests and the destination you are pinging.
  • c

    curved-father-48262

    11/28/2022, 4:32 PM
    I got moved to a new project that is well underway so i'm trying to play catch up installing cypress and adding tests. I don't see where to import my commands.js so they work properly I get a message that says cy.whatever does not exist on type whatever and there's 3 dots ( in vs code ) I have read the migration guide, the plugins guide and the configuration guides several times, and watch the migration video and apparently I am missing something fundamental
  • m

    magnificent-baker-97250

    11/28/2022, 4:49 PM
    Thank you, you helped me
  • e

    enough-truck-68085

    11/28/2022, 7:19 PM
    I got moved to a new project that is
  • c

    curved-father-48262

    11/28/2022, 10:02 PM
    I am using badeball cypress cucumber, and i have copied the cypress config.ts from https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/examples/webpack-ts . I am getting webpack is not a function .
    Copy code
    on(
        "file:preprocessor",
        webpack({
          webpackOptions: {
    where it says "webpack(" I have checked my package.json I am fairly sure everythings there, Any advice appreciated
  • f

    future-eye-56254

    11/29/2022, 12:52 AM
    How to make all exoect assertions run even if one fails. I have this code where there are 3 expect assertions. 1st passes 2nd fails 3rd never gets checked. How can I make the 3rd and all that follow the failed assertion still execute?
  • g

    gray-kilobyte-89541

    11/29/2022, 2:08 AM
    an anti-pattern. But if you want, I am playing with soft assertions https://github.com/bahmutov/cypress-soft-assertions
  • d

    delightful-alligator-19846

    11/29/2022, 8:00 AM
    We upgraded it to 18.x.x version and still getting the same issue !
  • r

    rhythmic-army-81251

    11/29/2022, 9:53 AM
    Is anyone experiencing "We detected that the Chromium Renderer process just crashed." since moving to Cypress v11 We can reproduce this issue simply by running a branch on v10 and a branch with the only changes moving to v11. Definitely looks like an OOM issue on long running specs We are using electron.
    Copy code
    <--- Last few GCs --->
    
    [39787:0x2d80003e8000]  1099451 ms: Scavenge 544.0 (630.7) -> 539.1 (631.2) MB, 4.6 / 0.0 ms  (average mu = 0.994, current mu = 0.992) task; 
    [39787:0x2d80003e8000]  1100635 ms: Scavenge 545.2 (631.2) -> 540.6 (631.5) MB, 5.4 / 0.0 ms  (average mu = 0.994, current mu = 0.992) task; 
    [39787:0x2d80003e8000]  1102225 ms: Scavenge 547.5 (632.0) -> 542.4 (632.5) MB, 4.4 / 0.0 ms  (average mu = 0.994, current mu = 0.992) allocation failure; 
    
    
    <--- JS stacktrace --->
    
    [39787:1128/212300.266298:ERROR:v8_initializer.cc(730)] V8 process OOM (Oilpan: Reserving memory.).
  • f

    fresh-doctor-14925

    11/29/2022, 9:55 AM
    I haven't encountered it, but here's a couple of suggestions: • reducing
    numTestsKeptInMemory
    from 50 to a lower figure • running the tests in chrome headless rather than electron
  • r

    rhythmic-army-81251

    11/29/2022, 9:55 AM
    will try chrome, these are already running headless in pipeline, as I understand it headless won't keep tests in memory anyway right?
  • f

    fresh-doctor-14925

    11/29/2022, 9:56 AM
    I think some things are kept, but I don't really understand that part. It's more under-the-hood than your regular test context. Maybe one of the cypress engineers can elaborate
  • g

    gray-kilobyte-89541

    11/29/2022, 11:37 AM
    on Jenkins? Have you done
    node -v
    before installing
1...215216217...252Latest