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

    rough-book-31535

    12/01/2022, 9:51 AM
    One more question:) Are you having problems connecting to Cypress Cloud from the application? I'm redirected fine in the browser, I log in, everything works fine except on the app, I get stuck on this:
  • f

    fresh-doctor-14925

    12/01/2022, 10:08 AM
    One more question Are you having
  • f

    fresh-doctor-14925

    12/01/2022, 10:24 AM
    !duplicate
  • n

    nutritious-analyst-96582

    12/01/2022, 10:24 AM
    Uh oh, It looks like you have posted the same question in multiple channels. Help us prevent spam by removing any duplicates of your questions, Thanks! ๐Ÿ˜€
  • b

    brave-mouse-59640

    12/01/2022, 10:25 AM
    remove here.. i am tracking in help-e2e-testing
  • f

    fresh-doctor-14925

    12/01/2022, 10:27 AM
    You'll need to remove it yourself. I'm not an admin
  • a

    acceptable-solstice-90676

    12/01/2022, 11:52 AM
    Has anyone done Parallelization in AWS?
  • b

    better-controller-98139

    12/02/2022, 8:39 AM
    I'm doing cy.intercept on a graphql API for a query to read the response. But the page does 2 calls to this query. I need to only alias the second one. Cypress seems to always alias the first request, even if it's previously made. Ive worked around by explicitly looking for a variable that's only in the second request. Anyone seen this/suggest a fix?
  • f

    fresh-doctor-14925

    12/02/2022, 9:38 AM
    Couple of options: The one that Cypress recommends in the docs: if your queries/mutations have an operationName, you can filter on them: https://docs.cypress.io/guides/end-to-end-testing/working-with-graphql Or if you have access to the app code, you can add another header to your Graph calls and filter on that. I prefer this approach as it means you can still use things like aliasing that is visible in the UI, as well as the
    {times}
    option

    https://www.youtube.com/watch?v=AcU5mkedchMโ–พ

  • p

    prehistoric-restaurant-43608

    12/02/2022, 12:14 PM
    ECONNREFUSED on cypress while working outside of cypress
    • 1
    • 2
  • s

    stocky-kilobyte-57323

    12/02/2022, 1:33 PM
    Not getting any of these errors browsing the site normally. in the config i've set
    baseUrl: 'http://nkdb.test',
    What could be wrong? All ideas are welcome.
  • r

    rhythmic-army-81251

    12/02/2022, 1:33 PM
    I'm getting ffmpeg related errors in our cypress pipeline since moving to v11, is anyone aware of issues or ways I can go about debugging/finding more info here?
    Copy code
    Error: ffmpeg exited with code 1: Conversion failed!
    
        at ChildProcess.<anonymous> (<embedded>:1063:121715)
        at ChildProcess.emit (node:events:527:28)
        at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    ffmpeg exited with code 1: Conversion failed!
    
    Error: ffmpeg exited with code 1: Conversion failed!
    
        at ChildProcess.<anonymous> (<embedded>:1063:121715)
        at ChildProcess.emit (node:events:527:28)
        at ChildProcess._handle.onexit (node:internal/child_process:291:12)
  • b

    bitter-fountain-36713

    12/02/2022, 2:54 PM
    Is your page sending 2 requests at the same time?
  • b

    better-controller-98139

    12/02/2022, 3:04 PM
    When the page loads, yeah. One is paginated and the other isn't.
  • b

    better-controller-98139

    12/02/2022, 3:06 PM
    But from debugging, I believe cypress will still always find the first, even if it was from a few seconds ago
  • l

    late-planet-4481

    12/02/2022, 3:11 PM
    Well that's a tricky one. Could you do something like this?
    Copy code
    js
    cy.intercept('route').as('firstRequest')
    cy.visit('yourpage')
    cy.wait('@firstRequest')
    cy.intercept('route').as('secondRequest')
    cy.wait('@secondRequest').then(() => {
      conditionallySelectTheCorrectRequest()
    })
    This feels hacky and subject to a race condition, but it's the only thing I can think of off the top of my head.
  • f

    fresh-doctor-14925

    12/02/2022, 3:16 PM
    I gave an answer above, @better-controller-98139 . Did that not work?
  • l

    late-planet-4481

    12/02/2022, 3:18 PM
    Those seem like good options.
  • b

    better-controller-98139

    12/02/2022, 3:19 PM
    Yeah thanks, already doing op 1. Op 2 would work but would need to discuss with the team.
  • b

    better-controller-98139

    12/02/2022, 3:21 PM
    I worked around by filtering on operation name and variables. Instead of just operationname
  • b

    better-controller-98139

    12/02/2022, 3:21 PM
    Was hoping there's a way to clear network requests or something!
  • g

    gray-kilobyte-89541

    12/02/2022, 3:40 PM
    https://github.com/bahmutov/cypress-wait-if-happens
  • b

    bumpy-insurance-8581

    12/02/2022, 4:20 PM
    Hello
  • b

    bumpy-insurance-8581

    12/02/2022, 4:22 PM
    Iโ€™ve a question about cy.get()
  • b

    bumpy-insurance-8581

    12/02/2022, 4:26 PM
    I cy.get() a list of input after doing a research, the data refresh, but for any reason, it seem to load a previous list of input I set a should('have.length.greaterthan', 1) and a timeout of 20 seconds on the cy.get, but it seem to always get the previous search result input, not the new one. It works only if i do a cy.wait() but I donโ€™t want to use it. Any idea ?
  • g

    gray-kilobyte-89541

    12/02/2022, 4:27 PM
    Hard to say without seeing your test code, but read this https://on.cypress.io/retry-ability
  • b

    bumpy-insurance-8581

    12/02/2022, 4:30 PM
    ๐Ÿšจ If the assertion that follows the cy.get() command fails, then the cy.get() command will requery the application's DOM again. Then Cypress will try the assertion against the elements yielded from cy.get(). If the assertion still fails, cy.get() will try requerying the DOM again, and so on until the cy.get() command timeout is reached. This is what is not happening in my case
  • d

    dry-scooter-25612

    12/02/2022, 4:39 PM
    This is a modal window I need to enter the invoice total value and pass it to the payment amount.
  • b

    bitter-fountain-36713

    12/02/2022, 4:39 PM
    cy.intercept() will catch matching requests, but cy.wait() on that intercept will wait for only the first.
  • d

    dry-scooter-25612

    12/02/2022, 4:39 PM
    the idea is to transfer the total invoice value to the payment amount.
1...218219220...252Latest