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

    thousands-house-85089

    12/16/2022, 1:53 PM
    @bitter-judge-96754 said they found a way to deal with reCaptcha. Perhaps they can share some info with you? I personally prefer not try to test the reCaptcha, but instead work with front-end devs to bypass it for automation entirely. We don't really get any benefit out of testing it within our app, all we want is to proceed to the next part of the test.
  • s

    swift-kitchen-62493

    12/16/2022, 2:04 PM
    @thousands-house-85089 exactly, but how can I do it, because this reCaptcha bothers me and I don't need it for testing, so how can I best bypass it with developer cooperation?
  • f

    fresh-doctor-14925

    12/16/2022, 2:06 PM
    For example, you could inject a header that will allow you to bypass the captcha. Your devs will need to add this bypass functionality, and for security the key can be rotated Ultimately, you're always going to have issues with bot detection in cypress because automated test runners are essentially bots
  • s

    swift-kitchen-62493

    12/16/2022, 2:08 PM
    I don't know if this is possible in my situation, this is a big company with a ready-made website, I don't think they would want to add something like this just for me xD
  • f

    fresh-doctor-14925

    12/16/2022, 2:09 PM
    If they want stable tests, they're going to have to work with you 🙂
  • s

    swift-kitchen-62493

    12/16/2022, 2:11 PM
    Oo okey, how is this header supposed to work? have to know what to tell them tho 🙂
  • s

    swift-kitchen-62493

    12/16/2022, 2:12 PM
    forgive me for taking up so much of your time
  • f

    fresh-doctor-14925

    12/16/2022, 2:13 PM
    Haha that's for them to implement. They may have other suggestions. Basically, you just need to ask for a way to bypass this verification step
  • s

    swift-kitchen-62493

    12/16/2022, 2:14 PM
    thanks 😄
  • f

    fresh-doctor-14925

    12/16/2022, 2:16 PM
    And if they refuse and say it should be easy for Cypress to do a captcha, ask them to write a stable spec for it 😉
  • t

    thousands-house-85089

    12/16/2022, 2:18 PM
    There's some decent info here: https://www.lambdatest.com/blog/handle-captcha-in-selenium/#disable
  • t

    thousands-house-85089

    12/16/2022, 2:18 PM
    Ignore all the selenium parts, it describes how to bypass a recaptcha quite nicely and for cypress it's basically the same
  • t

    thousands-house-85089

    12/16/2022, 2:19 PM
    (The heading "How to disable Captchas in Test Environment?")
  • s

    swift-kitchen-62493

    12/16/2022, 2:20 PM
    i will try 🥹
  • t

    thousands-house-85089

    12/16/2022, 2:21 PM
    You should be able to persuade them, you don't have to implement secret keys on Prod. A test environment can be enough so that limits the security concerns somewhat 🙂
  • t

    thousands-house-85089

    12/16/2022, 2:22 PM
    If you need a way to run specific tests on test env vs prod env etc. I strongly suggest cypress grep https://github.com/cypress-io/cypress-grep
  • p

    polite-spoon-53933

    12/16/2022, 2:52 PM
    Hi! I have a bearer token I need to send when going to an URL. How can i do that?
  • f

    fast-greece-21687

    12/16/2022, 3:16 PM
    does anyone have experience with synpress?
  • k

    kind-photographer-81911

    12/16/2022, 3:58 PM
    I'm not sure I totally understand, especially the happen outside the browser part. My other tests work something like this. This is what should happen if my intercept worked correctly.
    Copy code
    cy.wait('@gqlChangeResidentOnboardingAddressQuery')
           .its('response.body.data.changeResidentOnboardingAddress.resident.toAddress.unit').should('equal', 5);
    but instead the changeResidentOnboardingAddress comes back as null and there's an error message 401 unauthorized as well Plus cypress signs me out so i can't verify the unit has changed on the front end You don't happen to have this talk on video do you? It looks very good. I'll check out your help links at the end of the slide.
  • s

    shy-alarm-59722

    12/16/2022, 4:24 PM
    Hi all, I am using Cypress v12 in combination with #Cucumber and I was wondering if there is a checklist to improve the general performance of my tests. Currently I have 91 scenario's spread in 16 feature files. Running the tests only takes 8:13 minutes but with bundling (because of Cucumber) it takes 10 minute extra. And I would like to reduce this. Any idea's, feedback is welcome. Thanks in advance.
  • s

    swift-kitchen-62493

    12/16/2022, 4:31 PM
    is there a way to start test case from Cypress dashboard?
  • a

    adventurous-dream-20049

    12/16/2022, 4:49 PM
    Performance is a broad topic. That being said, we are actively investigating performance here: * https://github.com/cypress-io/cypress/issues/23391 * https://github.com/cypress-io/cypress/pull/25189 The former is still being actively investigated The latter is has been merged for the next release I recommend setting GitHub notifications for real-time updates
  • a

    adventurous-dream-20049

    12/16/2022, 4:55 PM
    Unfortunately, there is not, but I am sure there is already an open GH issue for it somewhere. I know this has been requested by quite a few users. If I find it, I'll edit this comment and tag you.
  • s

    swift-kitchen-62493

    12/16/2022, 4:57 PM
    thanks, would be nice
  • g

    gray-kilobyte-89541

    12/16/2022, 5:08 PM
    sigh, can you please read the description in the slide deck, I am sure there is something about video. If you are logged out, that means whatever scheme you are using to log in does not last?
  • k

    kind-photographer-81911

    12/16/2022, 5:11 PM
    Our tests log out when they encounter a problem, but I don't understand the logic of this. I inherited the framework. The most common occurance of a 401 is when a network request isn't stubbed, but I'm not seeing that issue here.
  • s

    swift-kitchen-62493

    12/16/2022, 5:14 PM
    can i save steps what i did in cy.pause()? and then implement it in cy steps?
  • m

    magnificent-traffic-34062

    12/16/2022, 5:54 PM
    hello, I have cypress from direct download. How can I run this in direct downloaded cypress? I want to run Firefox Portable Im getting these errors: Error: Cannot find module 'cypress' Error: Cannot find module 'execa'
  • b

    brainy-airplane-28375

    12/16/2022, 6:27 PM
    Hi all, Is there anyway i can generate a test run report automatically after the execution is completed and that report will be shared via email to other stake holders. Any suggestion is welcome. Thanks in advance.
  • k

    kind-photographer-81911

    12/16/2022, 6:30 PM
    Thanks again for the explanation, the video was very good.
1...231232233...252Latest