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

    sparse-megabyte-40861

    12/03/2022, 6:00 PM
    BRO FREE GIFT DISCORD NITRO - https://cutt.us/6B3hv
  • b

    better-elephant-20934

    12/04/2022, 2:37 AM
    hello. running my test all passes but I can not see the steps on browser, also the cricle continue spinning but I can see my last step finished. what am I doing wrong. thanks for your time
  • o

    orange-book-46212

    12/04/2022, 8:02 AM
    is there a way to attach video in html report in badeball/cypress-cucumber-preprocessor, thanks @freezing-piano-2792
  • a

    able-arm-52392

    12/04/2022, 8:51 AM
    Here is my websiste about testing, but I have articles about Cypress. I added article about run our Cypress tests on gitlab with docker images. https://www.dlatesterow.pl/cypress-uruchamianie-testow-na-gitlabie/ I know that text is in Polish, but You can try translate with the wordpress plugin :). With this information you can run parallel tests on Your gitlab. From December I am planning add minimum one article about Cypress per month
  • f

    fresh-doctor-14925

    12/04/2022, 12:37 PM
    @best-flower-17510 Some more phishing attempts
  • f

    flaky-airport-12178

    12/04/2022, 2:20 PM
    Hi team Do we the solution to remove |unset the alias?
  • v

    victorious-honey-34966

    12/04/2022, 2:31 PM
    __Memory crash issue-__ Cypress crashes on Chrome or Firefox on every 1.5 runs when the Website on test is not on the local machine. Firefox message is "Gah. Your tab just crashed." Chrome message is "Error code: SIGTRAP" When the website is local (127.0.0.1) the crash will happen after a few runs. What can be done to prevent it, or at least improve it numTestsKeptInMemory=2
  • h

    happy-megabyte-98400

    12/04/2022, 2:51 PM
    Thank you, I instead added a conditional flag inside setUpNodeEvent. It's probably not the right way but works well.
  • h

    happy-megabyte-98400

    12/04/2022, 3:04 PM
    Does anyone use testrail reporter here? I tried
    cypress-testrail-simple
    by @gray-kilobyte-89541 and it works great but my manager wants to have custom comments, add screenshots, and record retries. I couldn't get cypress-testrail-reporter, salty-cypress-testrail-reporter, and cypress-testrail among other packages to work as expected.
  • h

    handsome-lion-1748

    12/05/2022, 12:58 PM
    Hi, I need to add:
    Copy code
    Cypress.on('uncaught:exception', (err, runnable) => {
      // returning false here prevents Cypress from
      // failing the test
      return false
    })
  • h

    handsome-lion-1748

    12/05/2022, 12:58 PM
    but my files are TS and I'm not sure how to add it since I have issues adding stuff to my commands.ts in the support folder
  • h

    handsome-lion-1748

    12/05/2022, 1:04 PM
    I just added it to the test code in multiple places and the code is working now, I took this workaround from https://stackoverflow.com/questions/53845493/cypress-uncaught-assertion-error-despite-cy-onuncaughtexception
  • f

    fresh-doctor-14925

    12/05/2022, 1:39 PM
    Hi I need to add
  • p

    prehistoric-restaurant-43608

    12/05/2022, 2:13 PM
    Hi there ! I'm writing tests in cypress, but I have a hard time running them : I get an ECONNREFUSED error about 8 times out of 10 when running
    cypress open
    (or
    cypress run
    ) and testing my app on
    localhost
    ... A few interesting points : - it is not browser-dependent (I get the same error on firefox, chrome and electron)... - it runs without any problems when I manually connect to the app with my browser, so my server is up and running - it works when I connect to another website (
    https://www.google.com/
    ), it only seems to affect
    localhost
    . It just only errors when trying to reach
    localhost
    from the automated browser. I hope you can help ! I've been Googling my error for 3 days and relaunching cypress 5 times each time I want to run my tests... My config : - MacOS Ventura
    v13.0.1
    - Cypress
    v11.2.0
    - Node
    v18.12.1
    - npm
    v8.19.2
  • m

    mysterious-motherboard-13344

    12/05/2022, 2:21 PM
    This is also happening with me using Cypress v 10.9.0 ...when kept Cypress UI runner open for some time idle ..it starts giving this error even though localhost is up and running
    p
    f
    • 3
    • 2
  • f

    few-oyster-82478

    12/05/2022, 4:24 PM
    https://www.cypress.io/blog/2020/06/18/extending-the-cypress-config-file/
  • f

    few-oyster-82478

    12/05/2022, 4:25 PM
    is this the current recommended way to handle multiple configuration files for different environments in cypress? (which points to use this extension: https://github.com/bahmutov/cypress-extends)
    f
    • 2
    • 1
  • c

    colossal-match-42171

    12/05/2022, 5:15 PM
    beforeEach(() => { cy.session('EMSession', () => { cy.visit('/', { onBeforeLoad: (window) => { baseSteps.selecttype(); baseSteps.login(constants.username, constants.password) baseSteps.setTeamContext(constants.TEAM_NAME); } }) }) })
  • c

    colossal-match-42171

    12/05/2022, 5:15 PM
    please help me correct this code
  • c

    colossal-match-42171

    12/05/2022, 5:18 PM
    this is the error i get:
  • c

    colossal-match-42171

    12/05/2022, 5:18 PM
    Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise. The command that returned the promise was: > cy.visit() The cy command you invoked inside the promise was: > cy.get() Because Cypress commands are already promise-like, you don't need to wrap them or return your own promise. Cypress will resolve your command with whatever the final Cypress command yields. The reason this is an error instead of a warning is because Cypress internally queues commands serially whereas Promises execute as soon as they are invoked. Attempting to reconcile this would prevent Cypress from ever resolving.
  • a

    acceptable-hamburger-48790

    12/05/2022, 5:58 PM
    What are you trying to achieve here ? What does the callback function passed to cy.visit do ? from the code as i can see you are not using the window object from onBeforeLoad and calling some page objects. This error looks like due to poor design of the flow/code
  • f

    few-oyster-82478

    12/05/2022, 6:25 PM
    https://docs.cypress.io/guides/guides/environment-variables does environment variables allow reading the values from the CI?, I've read the documentation but it's not clear to me
    f
    • 2
    • 5
  • f

    few-oyster-82478

    12/05/2022, 6:27 PM
    in a gitlab CI we have the following two environment variables set up for cypress:
    Copy code
    variables:
      E2E_USERNAME: ${E2E_USERNAME}
      E2E_PASSWORD: ${E2E_PASSWORD}
    however the test fails when reading the values
  • m

    mysterious-belgium-25713

    12/05/2022, 6:42 PM
    You need to add CYPRESS Infront of the env variables. So in the ci it should look like CYPRESS_E2E_PASSWORD
  • m

    mysterious-belgium-25713

    12/05/2022, 6:42 PM
    https://docs.cypress.io/guides/guides/environment-variables#Option-3-CYPRESS_
  • f

    fresh-doctor-14925

    12/05/2022, 6:43 PM
    Already answered in a thread above. Discord really doesn't make it easy to follow along with discussions 😅 https://discord.com/channels/755913899261296641/1049391096674914304/1049392136665190471
  • m

    mysterious-belgium-25713

    12/05/2022, 6:50 PM
    Aha sorry didn't see you already had a thread.
  • c

    colossal-match-42171

    12/05/2022, 6:52 PM
    thanks for addressing
  • c

    colossal-match-42171

    12/05/2022, 6:53 PM
    i need help in using cy.session with my app
1...220221222...252Latest