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

    lively-cartoon-98054

    07/05/2022, 12:30 PM
    Hi all. I'm facing a problem using Cypress and Typescript. Even using compiler options like noEmitOnError: true, when I have a Ts error, cypress starts and run try to run the tests. Is there an out of the box way to prevent the test execution if there are Ts error on my code?
  • p

    purple-kilobyte-85592

    07/05/2022, 1:06 PM
    Hi Everyone can anyone tell mew what's latest way to fix iframes in Cypress 10.3
  • a

    acoustic-zoo-37964

    07/05/2022, 2:08 PM
    Hi everyone, I just got on a project and inherited old cypress tests in version 3.2.0 (I haven't tried updating to a newer version yet) and I can't open cypress workspace. I downloaded cypress dependencies from the url provided in the error msg. Also i did npm install in the cypress folder. this is the terminal error i get after $ npx cypress open It looks like this is your first time using Cypress: 3.2.0 ✖ Verifying Cypress can run /home/user/.cache/Cypress/3.2.0/Cypress → Cypress Version: 3.2.0 Cypress failed to start. This is usually caused by a missing library or dependency. The error below should indicate which dependency is missing. https://on.cypress.io/required-dependencies If you are using Docker, we provide containers with all required dependencies installed. ---------- (Cypress:170090): Pango-ERROR **: 14:49:41.550: Harfbuzz version too old (1.4.2) ---------- Platform: linux (Ubuntu Linux - 20.04)
  • p

    plain-application-7567

    07/05/2022, 2:33 PM
    Hi, how do I implement this in Cypress >>> reload page until element is visible? Came from CodeceptJS and can't seem to implement this method in Cypress...
  • g

    gray-kilobyte-89541

    07/05/2022, 2:51 PM
    https://github.com/bahmutov/cypress-recurse
  • b

    bumpy-library-92619

    07/05/2022, 3:37 PM
    @gray-kilobyte-89541 i installed grep with your video and if i want to run the tests, im getting the following error: Error: Incompatible versions detected, cypress-grep 2.0.0+ requires Cypress 10.0.0+ Do I really need to update cypress? or there is some way to solve this issue?
  • p

    plain-application-7567

    07/05/2022, 3:54 PM
    thanks @gray-kilobyte-89541, will check.
  • g

    gray-kilobyte-89541

    07/05/2022, 4:00 PM
    Install a specific version of cypress-grep
  • g

    gentle-accountant-4760

    07/05/2022, 4:36 PM
    What is the best way to check if a string is in a json array?
  • g

    gray-kilobyte-89541

    07/05/2022, 4:43 PM
    what is "checking if a string is in a json array"?
    array.includes(s)
    ?
  • g

    gentle-accountant-4760

    07/05/2022, 4:43 PM
    its a JSON that is e.g.: json = '{ .... }'
  • g

    gentle-accountant-4760

    07/05/2022, 4:43 PM
    and I want to see if ABCDEF is inside the json
  • g

    gentle-accountant-4760

    07/05/2022, 4:44 PM
    like anywhere in the JSON
  • g

    gray-kilobyte-89541

    07/05/2022, 5:06 PM
    so you are checking if a string is inside another string,
    expect(s).to.include(s2)
    I think
  • g

    gentle-accountant-4760

    07/05/2022, 5:10 PM
    I dont think the JSON is a string, maybe I need to convert it toString()
  • g

    gray-kilobyte-89541

    07/05/2022, 6:02 PM
    you can always run
    JSON.stringify
    on an object
  • g

    gentle-accountant-4760

    07/05/2022, 6:18 PM
    Ahh I see. That would probably work! thanks!
  • a

    alert-area-86576

    07/05/2022, 8:36 PM
    Hello
  • a

    alert-area-86576

    07/05/2022, 8:36 PM
    What is the command to run a specific feature file in cypress dashboard?
  • q

    quaint-kangaroo-22871

    07/06/2022, 2:27 AM
    did you found any solution?
  • s

    swift-angle-95455

    07/06/2022, 3:21 AM
    Oh yes, basically there is a bug in Cypress version < 10.3.0 (in v.10.3.0 is fixed).
  • s

    swift-angle-95455

    07/06/2022, 3:22 AM
    In 10.3.0 changelog they fixed about multidomain cookie handling. That was a really annoying bug, I thought it was a "feature".
  • b

    brief-camera-603

    07/06/2022, 6:23 AM
    Hello, we started cypress automation tests for a PHP app. I knew we can have code coverage for Javascript app (server and client), but can we have test coverage for the PHP app cypress testing?
  • f

    faint-cat-31237

    07/06/2022, 7:03 AM
    Hello everyone, 👋 I hope you're all doing well ^^ I just have a question : In the company i'm working at they loved cypress. Know that I have automated end-2-end tests with cypress. They asked me if I can automated performance/load testing. So I looked on the internet and I found many tools like k6, artilery, gatling, etc. But my team would love something/tool like "*cypress does*" that is : - Visiting a page in our application - Get all http requests that have been made in the navigator inside that page - And finally, simulates a load testing with, for example, 200 users, on those requests. The use case is that, my team doesn't have to modify the test script when they make a change in the API or if they add a new endpoint to the API, And the idea that we can automated those tests in our CI/CD in github action, so we can find out if a pull request have create a regression in our application Any insights would be very appreciated 🙏
  • b

    bumpy-library-92619

    07/06/2022, 8:16 AM
    Hi guys, yesterday i added the plugin grep on my laptop and it worked, today if i want to work continue on my desktop im getting the following error: Error: Cannot find module 'cypress-grep/src/plugin' Any suggestion why it happens?
  • b

    brash-tiger-52405

    07/06/2022, 9:28 AM
    Hello everyone, i want to make a conditional Test, because sometimes a cookie comes and sometime not. I made this, but it doesnt works : cy.get('body', ).then($body => { if ($body.find('button.success-btn').length > 0, {timeout: 10000}) { cy.get('button.success-btn').click() } }); What is false? It tries to find the button anyway.
  • p

    plain-pencil-72796

    07/06/2022, 10:31 AM
    Hey guys, could it me that @cypress/react doesnt support react v18? I keep getting the following error:
  • g

    gray-kilobyte-89541

    07/06/2022, 11:05 AM
    search for "conditional testing" at https://cypress.tips/search
  • b

    bumpy-library-92619

    07/06/2022, 11:33 AM
    if you add --legacy-peer-deps should solve the problem
  • n

    narrow-fireman-72488

    07/06/2022, 11:38 AM
    hey everyone is there a way for us to send test summaries to mattermost instead of slack?
1...103104105...252Latest