https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • b

    broad-toothbrush-93273

    06/15/2022, 10:54 AM
    Hi, From package.json i have "test:cypress": "cypress run" to launch CI/CD test... But how to use a ".env.e2e" file instead ".env" file ?
  • s

    sparse-action-76146

    06/15/2022, 11:12 AM
    Hey, I have been trying to run an example test on the new version of Cypress 10.1.0 (used to use 9.7, it worked as expected) but I am facing a not responding launchpad and the tests get stuck. Facing it since I updated the version. Running Windows OS.
  • c

    clean-australia-93957

    06/15/2022, 2:46 PM
    Hi, since I started to migrate to Cypress 10 (currently on 10.1.0)I’ve been having some issues. Now main issue is when I start my project cy logo freezes on spinning loading and never show any error. Has anyone experienced that?
  • a

    aloof-midnight-3678

    06/15/2022, 2:49 PM
    You choose e2e, then sets config files, and when you press continue logo just spins and spins then it gives error right? I'm experiencing the same
  • c

    clean-australia-93957

    06/15/2022, 2:50 PM
    Actually, mine is not even giving errors just keeps spinning forever. It was after the new release.
  • a

    aloof-midnight-3678

    06/15/2022, 2:52 PM
    oh mine fails, closes app then gives error at the terminal, it doesn't work in my newly created react app but in a playground file (just cypress files) it works. Interesting
  • b

    better-pharmacist-8890

    06/15/2022, 6:42 PM
    I have an angular app that our company wants to incorporate cypress into - our app logins with a 3rd party app on a totally different URL and I cannot figure out how to get past this - when you route to our /home page it goes first to this 3rd party website which sends back some info and then you are authenticated. How do I fake this call out or do I really need to login using my username and password?
  • l

    little-france-10142

    06/15/2022, 6:58 PM
    Hi there, I am going through https://learn.cypress.io/testing-your-first-application/how-to-use-cypress-commands The tutorial has me utilize
    cy.createDefaultTodos()
    after adding it to a
    command.js
    support file. The support file also contains `const`'s that hold the desired text to type. My problem comes when I try to assert
    .should("contain", TODO_ITEM_ONE)
    Is there some way to export those consts or import them into my test file?
  • r

    rhythmic-winter-96378

    06/15/2022, 7:04 PM
    Cypress recording isn't complete (Github Action)
    • 1
    • 2
  • m

    mammoth-manchester-71430

    06/16/2022, 5:10 AM
    Reports directory not displayed in the project folder. Can I know how to add reports dir in my project
  • g

    gifted-rain-40072

    06/16/2022, 10:11 AM
    That is happening to me too. I'm not even migrating. Just trying an install in a new directory (with my old project closed). After selecting e2e, it sets config files, then the Mac 'beach ball' starts spinning and I have to force quit Cypress. It shows as not responding. I've been searching the github issues but did not see anything like this. I thought it was just me! I've tried several v10 releases and it occurs on all. Also upgraded from Big Sur to Monterey in between attempts and issue still exists.
  • m

    mammoth-manchester-71430

    06/16/2022, 10:28 AM
    How to generate html report in cypress with latest version 10.1.0
  • m

    mammoth-manchester-71430

    06/16/2022, 10:40 AM
    In cypress chrome the test( 2 specs) passed, but in the dashboard it shows running(more than 2 hours)
  • s

    sparse-action-76146

    06/16/2022, 12:22 PM
    Guess you are not the only experiencing similar issues, I haven't succeed to run the latest Cypress version and it completely ruins my progress.
  • f

    fresh-truck-40418

    06/16/2022, 12:46 PM
    hello everyone, i'm trying to intercept a very simple fetch request, simple like this one:
    fetch('/ventes/portefeuille.json').then(…).then(…)
    with that:
    Copy code
    cy.intercept('**/portefeuille.json').as('getWalletJson')
        cy.wait('@getWalletJson')
          .its('response.statusCode')
          .should('eq', 200)
    but the test still fails as we see :

    https://ss.cyrilou.me/ZWDok0qNgq.jpg▾

    and the request is here in the network request:

    https://ss.cyrilou.me/yKCeYpvzZW.jpg▾

    Does anyone have an idea on why the
    intercept
    don't incercept the resquest? Thank you!
  • g

    gray-kilobyte-89541

    06/16/2022, 12:57 PM
    🙂 you set the intercept and immediately wait for it. But what triggers the fetch? you need to do it in between
  • f

    fresh-truck-40418

    06/16/2022, 12:59 PM
    hello, thank you for your answer. the fetch() is launched approximatively on the DOMReady, I don't need any triggers to launch it. Except to load my page. Like more or less
    Copy code
    js
    document.addEventListener('DOMContentLoaded', function () {
     fetch(…)
    });
    Maybe I missed something or didon't understand what you're saying?
  • f

    fresh-truck-40418

    06/16/2022, 1:09 PM
    I tried with
    Copy code
    js
        cy.intercept('GET', '**/portefeuille.json').as('getWalletJson')
        cy.get('[data-cy="placeholder-glow"]')
          .should('not.exist')
        cy.wait('@getWalletJson')
    to put something between them but nothing changes
  • a

    able-helicopter-21289

    06/16/2022, 1:12 PM
    Hello, I updated from Cypress 9 to 10 and currently when I run "cypress open" all I get is blank page. Is there something that I need to update to make this work please ?
  • f

    fresh-truck-40418

    06/16/2022, 1:18 PM
    hi, did you take a look at this? https://docs.cypress.io/guides/references/migration-guide
  • f

    fresh-truck-40418

    06/16/2022, 1:20 PM
    I had the same issue yesterday. You need to follow this: https://docs.cypress.io/guides/references/migration-guide
  • b

    bright-processor-92363

    06/16/2022, 1:21 PM
    Maybe you should set cy.intercept before cy.visit
  • f

    fresh-truck-40418

    06/16/2022, 1:22 PM
    I tried to put in inside the
    beforeEach()
    function but it doesn't change.
  • f

    fresh-truck-40418

    06/16/2022, 1:29 PM
    OK so thanks to a mate of mine it works well if I put within the same
    it
    : - intercept first - visit the page after - XHR launched 🚀 - then wait for the intercept and it works well. 🎉 Before I tried to intercept it after the DOMready so after the XHR was launched.
  • r

    rich-pharmacist-74804

    06/16/2022, 1:34 PM
    In my case, it was stuck in the middle of running the test. I downgrade the cypress and it works fine.
  • s

    sparse-action-76146

    06/16/2022, 1:38 PM
    Can you please share how you downgraded the version? through NPM or installed separately?
  • r

    rich-pharmacist-74804

    06/16/2022, 1:47 PM
    Through YARN. I made different branches for migration so I didn't face any difficulty in downgrading. If you downgrade on same after migration might give problem as there are major changes.
  • s

    sparse-action-76146

    06/16/2022, 1:50 PM
    I did migrate and got a lot of problems, I tried installing a specific version directly, and as far as I understood you can not use the dashboard that way.
  • g

    gray-kilobyte-89541

    06/16/2022, 1:57 PM
    then you would set up your intercept before you visit the page
  • f

    fresh-doctor-14925

    06/16/2022, 2:59 PM
    Trying to get to the bottom of an intermittent error I've recently started seeing in my Cypress runs (Jenkins machines, orchestrated by Cypress Dashboard) It is causing runs to be marked as failed on Jenkins, and on the Dashboard they time out after an hour and a half. Has anyone else seen this in their runs?
    Copy code
    14:52:18  Cannot read properties of null (reading 'reading')
    14:52:18  TypeError: Cannot read properties of null (reading 'reading')
    14:52:18      at TCP.get [as reading] (node:_tls_wrap:634:27)
    • 1
    • 2
1...515253...192Latest