https://cypress.io logo
Join Discord
Powered by
# general-chat
  • p

    polite-painting-51763

    07/21/2022, 1:50 PM
    cypress-recurse is really great plugin
  • f

    famous-restaurant-30435

    07/21/2022, 1:51 PM
    You really should look into cy.clock and cy.tick then. Its way simpler than what you have written and instead of it actually taking a minute to run, you can jump ahead a minute and run the entire assertion in just a few seconds.
  • f

    famous-restaurant-30435

    07/21/2022, 1:51 PM
    I think your solution is really creative but probably a lot simpler to use cy.tick and cy.clock
  • p

    polite-painting-51763

    07/21/2022, 1:52 PM
    actual validation have to do within one minute and make sure state doesn't change. I can't skip that using tick
  • s

    stale-optician-85950

    07/21/2022, 2:12 PM
    Hi all, when I use a custom command (which works normally) inside
    cy.origin()
    I get the error `cy.dataSelector is not a function`:
    Copy code
    it(`Component title - "${platform}"`, () => {
              cy.origin('https://www.mycompany.co.uk', () => {
                cy.visit('/');
                cy.dataSelector('uol-c-media-banner-title').should('be.visible');
              });
    Is there really a restriction on using our custom commands inside
    cy.origin()
    and if yes why would that be?
  • s

    stale-optician-85950

    07/21/2022, 2:20 PM
    Ahhh looks like this issue is an open ticket https://github.com/cypress-io/cypress/issues/19974
  • b

    bulky-manchester-97357

    07/21/2022, 9:59 PM
    return (0, firebase_utils_1.slashPathToFirestoreRef)(adminInstance.firestore(), actionPath, options)[action](dataToSet);
  • b

    bulky-manchester-97357

    07/21/2022, 9:59 PM
    What does this notation mean?
  • g

    gray-kilobyte-89541

    07/21/2022, 10:58 PM
    you can cy.tick 60 times, each advancing by 1 second and confirming the element is still there šŸ™‚
  • r

    rough-van-84956

    07/22/2022, 1:22 AM
    10.3.1 has been out for a couple of days. Any idea when to expect
    cypress/included:10.3.1
    on DockerHub?
  • f

    famous-restaurant-30435

    07/22/2022, 2:18 AM
    @gray-kilobyte-89541 makes these images. So when it gets released make sure to say thank you. I’m sure he would also appreciate help if you wanted to make the image yourself.
  • p

    polite-painting-51763

    07/22/2022, 4:11 AM
    yeah, I done that, thanks
  • m

    mysterious-motherboard-13344

    07/22/2022, 7:14 AM
    Try passing the custom command as an argument inside cy.origin block parenthesis
  • s

    stale-park-86404

    07/22/2022, 7:58 AM
    still figuring out what caused this error but it looks like it's in the application code itself and not a Cypress issue
  • i

    important-fireman-17295

    07/22/2022, 8:19 AM
    Hello, everyone. Is there a way to disable web security for Firefox browser? Since
    chromeWebSecurity: false
    does not have an effect on Firefox. Disabling the web security is required for me to use this custom command: > Cypress.Commands.add('forceVisit', url => { > cy.window().then(win => { > return win.open(url, '_self'); > }); > }); I'm trying out
    forceVisit
    to visit multiple domains in a single test. (Reference: https://medium.com/@lasithdilshan20/cypress-force-visit-to-a-different-origin-321c2c356702)
  • s

    stale-park-86404

    07/22/2022, 8:35 AM
    you might want to check this https://github.com/cypress-io/cypress/issues/6629
  • s

    swift-kitchen-62493

    07/22/2022, 8:36 AM
    Hey, is there any command that activates only when the object shows up, or stays active all the time? because sometimes it shows a window that I have to click and sometimes it doesn't, it messes up my code, please help
  • n

    nutritious-honey-65632

    07/22/2022, 8:49 AM
    This works for me, it is not a good practice. https://docs.cypress.io/guides/core-concepts/conditional-testing#Element-existence
  • l

    loud-accountant-33201

    07/22/2022, 9:42 AM
    Hey all, after upgrading to Cypress 10 my assertions from React Testing Library are failing. Any idea why?
  • p

    polite-alarm-78904

    07/22/2022, 9:57 AM
    I am trying to run the github action in the todomvc-project. After forking the reop I upgraded cypress to the latest version, but when the action runs I get this error:
    Copy code
    You are attempting to use Cypress with an older config file: cypress.json
    When you upgraded to Cypress v10.0 the config file was updated and moved to a new location: cypress.config.js
    You may need to update any CLI scripts to ensure that they are referring the new version. This would typically look something like:
    "cypress open --config-file=cypress.config.js"
    https://on.cypress.io/migration-guide
    Test run failed, code 1
    More information might be available above
    Cypress module has returned the following error message:
    Could not find Cypress test run results
    Error: Could not find Cypress test run results
    ##[debug]Node Action run completed with exit code 1
    ##[debug]CI='1'
    ##[debug]CYPRESS_CACHE_FOLDER='/home/runner/.cache/Cypress'
    ##[debug]npm_config_cache='/home/runner/.npm'
    ##[debug]CYPRESS_CACHE_FOLDER='/home/runner/.cache/Cypress'
    ##[debug]CYPRESS_CACHE_FOLDER='/home/runner/.cache/Cypress'
    ##[debug]TERM='xterm'
    ##[debug]Finishing: Cypress run
  • p

    polite-alarm-78904

    07/22/2022, 9:59 AM
    I have followed the migration guide and the tests run fine locally. I dont have a cypress.json file.
  • n

    nutritious-honey-65632

    07/22/2022, 10:02 AM
    Cypress.json belongs to cypress 9. You should probably update cypress run command in GitHub workflow file
  • l

    loud-accountant-33201

    07/22/2022, 12:01 PM
    Figured this out. Cypress 10 uses a new
    cypress.config.ts
    file instead of the previous json file which caused my tsconfig file to have clashes between jest and cypress types - https://stackoverflow.com/questions/68584932/cypress-clashing-types-with-jest
  • s

    swift-kitchen-62493

    07/22/2022, 12:30 PM
    i can't find somethink about 'if" if exist -> click
  • a

    acceptable-hamburger-48790

    07/22/2022, 12:35 PM
    I would say get root element using cy.get().then(($el) => { use jquery to check the element existence and then click})
  • c

    cuddly-thailand-33926

    07/22/2022, 1:55 PM
    For code coverage do I need to instrument the application code or my Cypress code?
  • c

    crooked-megabyte-18846

    07/22/2022, 2:00 PM
    Hi all, I'm using cypress-cucumber-preprocessor, so I have feature files with the BDD, and step files with it() blocks, using Given(), When() etc. I have multiple feature files and corresponding step files. I introduced a before() into one of the step files, I want this to run once each time that feature file is run. I found that it works as expected except that the before() also runs when executing another feature file, which does not use the steps in the other step file. What could I be doing wrong?
  • c

    careful-insurance-62240

    07/22/2022, 2:16 PM
    How to Integrate Cucumber with CI/CD Jenkins to Execute Cypress Test Suites. https://www.linkedin.com/posts/kailashpathak_cypress-cypressio-automation-activity-6956177852627132416-Osvy?utm_source=linkedin_share&utm_medium=member_desktop_web
  • c

    careful-insurance-62240

    07/22/2022, 2:17 PM
    Cypress + Jenkins +Cucumber !!
  • b

    bulky-manchester-97357

    07/22/2022, 2:34 PM
    ?
1...686970...127Latest