https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • c

    curved-apartment-30079

    07/21/2021, 5:10 PM
    yeah
  • p

    purple-afternoon-2408

    07/21/2021, 5:10 PM
    I tried splitting them, it doesn't help for https://github.com/cypress-io/cypress/issues/17352
  • p

    purple-afternoon-2408

    07/21/2021, 5:12 PM
    I really don't know what is the issue with it
  • p

    purple-afternoon-2408

    07/21/2021, 5:12 PM
    I upgraded to 8.0.0 and waiting for the test now.
  • c

    curved-apartment-30079

    07/21/2021, 5:16 PM
    if you run it in electron locally, does it sometimes fail? That's one major diff between default GUI and CI. Also, did you take a look at this document that Jennifer linked to in the other issue? https://docs.cypress.io/faq/questions/using-cypress-faq#Why-do-my-Cypress-tests-pass-locally-but-not-in-CI
  • c

    curved-apartment-30079

    07/21/2021, 5:17 PM
    I've run into issues where electron is not as solid as chrome or edge chromium or is missing features that those browsers have.
  • c

    curved-apartment-30079

    07/21/2021, 5:18 PM
    also, if you turn that
    cy.wait
    up to something absurd like 5000, does it pass more consistently? If so, that might help narrow down the underlying issue--like maybe electron is not handling your router very well for some reason. In fact, which router are you using?
  • p

    purple-afternoon-2408

    07/21/2021, 5:18 PM
    The app cannot run in electron
  • c

    curved-apartment-30079

    07/21/2021, 5:19 PM
    is your CI running chrome and not electron?
  • c

    curved-apartment-30079

    07/21/2021, 5:19 PM
    electron is default browser I believe when using cypress.run
  • p

    purple-afternoon-2408

    07/21/2021, 5:19 PM
    chrome (and I tried ff - same issue)
  • c

    curved-apartment-30079

    07/21/2021, 5:22 PM
    sure, yeah I'd recommend reading through that doc and try to think about all the possible differences between your CI environment vs your local env. Looks like it lists all the things I've ever run into. What's the exact command you're running in CI, btw?
  • p

    purple-afternoon-2408

    07/21/2021, 5:23 PM
    cypress run "--browser=firefox" "--spec=cypress/integration/test-all.run.ts" "--config=videosFolder=tests/videos,screenshotsFolder=tests/screenshots"
    << this is what runs in ci
  • p

    purple-afternoon-2408

    07/21/2021, 5:23 PM
    also
    cypress run "--browser=chrome" "--spec=cypress/integration/test-all.run.ts" "--config=videosFolder=tests/videos,screenshotsFolder=tests/screenshots"
  • p

    purple-afternoon-2408

    07/21/2021, 5:24 PM
    same command succeeds locally
  • p

    purple-afternoon-2408

    07/21/2021, 5:24 PM
    this is the image I use
    cypress/browsers:node14.17.0-chrome91-ff89
  • p

    purple-afternoon-2408

    07/21/2021, 5:26 PM
    I have gone through that document, I'm really out of ideas
  • c

    curved-apartment-30079

    07/21/2021, 5:27 PM
    strange. Any major differences between your CI machine vs your local machine?
  • c

    curved-apartment-30079

    07/21/2021, 5:28 PM
    oh, node/npm version different?
  • c

    curved-apartment-30079

    07/21/2021, 5:29 PM
    could check your chrome/ff versions between that image and your local machine. Or do you run the image locally too?
  • p

    purple-afternoon-2408

    07/21/2021, 5:31 PM
    node and npm versions shouldn't be an issue but I guess I might have difference in the way the project built, let me check this.
  • p

    purple-afternoon-2408

    07/21/2021, 5:31 PM
    Thanks @User , good point 👍
  • c

    curved-apartment-30079

    07/21/2021, 5:32 PM
    sure. yeah, it would have to be something different that will probably even seem like not a big deal when you track it down--believe me...I've been there. Godspeed.
  • b

    brave-hydrogen-53919

    07/21/2021, 8:31 PM
    I'm on mac machine , how do i enable support to edge and firefox browser , my test runner shows chrome and electron
  • b

    bulky-sundown-74498

    07/21/2021, 8:31 PM
    Have you installed the 2 browsers on your machine ?
  • b

    bulky-sundown-74498

    07/21/2021, 8:31 PM
    https://www.microsoft.com/en-us/edge
  • b

    bulky-sundown-74498

    07/21/2021, 8:32 PM
    https://www.mozilla.org/en-US/firefox/new/
  • b

    bulky-sundown-74498

    07/21/2021, 8:32 PM
    Once you do, cypress should detect them
  • b

    brave-hydrogen-53919

    07/21/2021, 8:33 PM
    got it , if i want to run it on ci/cd do i need to install anything?
  • b

    brave-hydrogen-53919

    07/21/2021, 8:33 PM
    or just browser edge should do the thing?
1...131415...192Latest