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

    worried-branch-70135

    11/25/2021, 2:53 PM
    https://github.com/cypress-io/cypress/discussions/19112 Could some one help me on this issue the command is too long to execute when running the entire suite
  • l

    lemon-tent-31390

    11/25/2021, 6:19 PM
    Hi Everyone, Would like to know are there any open source that can let me practice my cypress testing skills? Like testing open source, etc...
  • s

    stocky-microphone-36525

    11/26/2021, 9:09 AM
    I'm getting an error The test case is that if you enter an email that doesn't exist, submit an error message If it runs on cypress, it doesn't give an error But when running in chrome submit error I don't understand why there's no error on cypress Thank you everyone
  • u

    user

    11/26/2021, 10:05 AM
    hope someone can help you 🙏 🙏
  • g

    gray-kilobyte-89541

    11/28/2021, 4:35 PM
    Subscribe to my Cypress Advent calendar 2021 here https://cypresstips.substack.com/p/coming-soon?r=26pni&utm_campaign=post&utm_medium=web&utm_source=copy and I will share a useful tip every day
  • c

    calm-doctor-58650

    11/30/2021, 12:15 AM
    Hey there! It's hard to tell without a better idea of what's going on with your application. What is triggering the error message? Some things you could try investigating -- - Is the event firing that triggers the validation? For example, if you have to click the submit button, make sure you are clicking on the correct element. - Is there an API call that validates and provides the error message? In Cypress open mode you can see the network requests in the Command Log or using the Inspect tab in the browser. You can view the request to make sure it's executing and completing successfully in your test.
  • s

    stocky-microphone-36525

    11/30/2021, 4:04 AM
    thank you, i will try 😍
  • b

    best-yacht-92435

    11/30/2021, 7:35 PM
    Hi so I don't think this is a weird question, but can't really find any documentation on how to run the github actions CI on a live site after it has been pushed to prod. So far I have this, but it doesn't make sense why would need to build start the local code if I just want to test the site that is live
    Copy code
    name: End-to-end PROD Cypress Tests
    'on':
      - workflow_dispatch
    jobs:
      cypress-run:
        runs-on: ubuntu-latest
        container: cypress/browsers:node14.17.0-chrome88-ff89
        steps:
          - name: Checkout
            uses: actions/checkout@v2
          - name: Build/Generate
            run: |
              yarn install
              yarn generate
          - name: Cypress run
            uses: cypress-io/github-action@v2
            with:
              record: true
              browser: chrome
              start: yarn start
              wait-on: http://localhost:3000
            env:
              CYPRESS_BASE_URL: '${{ secrets.CYPRESS_BASE_URL }}'
              CYPRESS_RECORD_KEY: '${{ secrets.CYPRESS_RECORD_KEY }}'
              GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
  • a

    ancient-wire-34126

    11/30/2021, 7:44 PM
    Why would you run tests against a prod URL?
  • a

    ancient-wire-34126

    11/30/2021, 7:44 PM
    You don't have a staging URL to test against before pushing the prod build?
  • b

    best-yacht-92435

    11/30/2021, 7:48 PM
    Prod or Staging URL. I want to have a post-deployment check as part of my prod CI to validate that it has deployed as expected or with githubs need cron like feature have a test run once a week
  • a

    ancient-wire-34126

    11/30/2021, 7:52 PM
    Can't you just directly run Cypress from the action? Seems weird to build "locally" and wait for the dev server to start
  • b

    best-yacht-92435

    11/30/2021, 8:15 PM
    right that is what I am wondering. All the documentation I have been able to find on the cypress github action seems to be centered around building and testing that, but it seems like it would be a waste to do that.
  • a

    ancient-wire-34126

    11/30/2021, 8:16 PM
    I agree, I think you can just run it directly without building (just
    npm run cypress:run
    ) or whatever your script command is
  • t

    tall-airplane-97209

    12/01/2021, 5:16 AM
    I'm trying to compare PDF files using an external library but am running into some issues. The library in question is compare-pdf (https://github.com/marcdacz/compare-pdf) and specifically I am following his examples (https://github.com/marcdacz/compare-pdf/tree/master/examples/cypress). I'm running 9.0 and when I run the test in question (which is basically his example verbatim), I get the following error. Is this a module error or a Cypress thing that I need to investigate further?
  • c

    calm-doctor-58650

    12/01/2021, 3:09 PM
    Hey there! It looks like the error is being thrown from the node_modules in the package itself. I see you created a GitHub issue on the plugin, which was my next suggestion. https://github.com/marcdacz/compare-pdf/issues/16 (assuming that's you because it's the same error, if not, then I'd add recommend adding a comment to that issue).
  • a

    ancient-wire-34126

    12/01/2021, 3:23 PM
    Any way to set a prop in component testing? These methods don't work (anymore?): https://github.com/cypress-io/cypress/issues/17712 😦
  • a

    ancient-wire-34126

    12/01/2021, 3:23 PM
    .invoke('setProps', { visible: true })
    doesn't work and converting to tsx won't mount the component (missing
    h
    render function)
  • f

    famous-restaurant-30435

    12/01/2021, 5:18 PM
    Hey folks, when using the Cypress/Included 9.1.0 image we are running into the following permission issues:
    Copy code
    javascript
    Error:
    
    
    
    16:17:04  [OperationalError: EACCES: permission denied, mkdir '/root/.config/Cypress/cy/production/proxy'
    16:17:04  
    16:17:04  ] {​​​​​​​​
    16:17:04    cause: [Error: EACCES: permission denied, mkdir '/root/.config/Cypress/cy/production/proxy'
    16:17:04    
    16:17:04    ] {​​​​​​​​
    16:17:04      errno: -13,
    16:17:04      code: 'EACCES',
    16:17:04      syscall: 'mkdir',
    16:17:04      path: '/root/.config/Cypress/cy/production/proxy'
    16:17:04    }​​​​​​​​,
    16:17:04    isOperational: true,
    16:17:04    errno: -13,
    16:17:04    code: 'EACCES',
    16:17:04    syscall: 'mkdir',
    16:17:04    path: '/root/.config/Cypress/cy/production/proxy'
    16:17:04  }​​​​​​​​
    16:17:04  Error: EACCES: permission denied, mkdir '/root/.config/Cypress/cy/production/proxy'
    16:17:04  
    16:17:04
    We didnt have these issues as recently as 8.7.0 so just wondering what changed in the image to cause this and if there are any known fixes? @User
  • c

    calm-doctor-58650

    12/01/2021, 5:45 PM
    Hey! Can you create a GitHub issue on the cypress-docker-images repository with a reproducible example of the error? That will help the team get eyes on it for troubleshooting. I haven't seen any other reported issues with the 9.1.0 image yet. https://github.com/cypress-io/cypress-docker-images/issues
  • g

    gray-kilobyte-89541

    12/01/2021, 9:06 PM
    Hey gang, the first email of my "Cypress Advent Calendar 2021" just went out, check out and subscribe if interested https://cypresstips.substack.com/
  • t

    tall-airplane-97209

    12/01/2021, 9:29 PM
    That is indeed me. I figured it was an error from that module so I raised the issue there. I'll see how I go, thanks.
  • t

    tall-airplane-97209

    12/02/2021, 5:09 AM
    Is there any known issue with videos 'freezing'? Seems to happen when I have my testing in GitHub Actions. It freezes both when I attach the videos to the specific run and in the Cypress Dashboard.
  • g

    gray-kilobyte-89541

    12/02/2021, 1:36 PM
    the container is too small and underpowered to run the app and the test runner and record the video
  • c

    calm-doctor-58650

    12/02/2021, 3:12 PM
    Hey Tabhmow, like Gleb said, in most cases this is related to resources on the CPU. Check out this FAQ in our docs that explains how to run with memory/CPU usage logs enabled, as well as another section on machine size recommendations: https://docs.cypress.io/faq/questions/using-cypress-faq#Why-are-my-video-recordings-freezing-or-dropping-frames-when-running-in-CI https://docs.cypress.io/guides/continuous-integration/introduction#Machine-requirements
  • t

    tall-airplane-97209

    12/03/2021, 8:27 AM
    Interesting... I'll read up on them. I'm guessing it affects all GitHub hosted runners? I'll disable compression and see how that goes.
  • l

    lemon-tent-31390

    12/03/2021, 10:47 AM
    would like to know how can i choose what file to run in cypress studio? Or only showing specific file in cypress studio?
  • c

    calm-gpu-44530

    12/07/2021, 3:03 PM
    Has anybody had an issue with scrambled cypress logs in github actions?
  • m

    microscopic-caravan-33322

    12/07/2021, 4:53 PM
    not in github actions, but I did see that yesterday just in terminal on my mac while running tests locally
  • c

    calm-gpu-44530

    12/07/2021, 4:57 PM
    did it resolve itself? found a thread from 2020 describing this problem but nothing since and no solutions that i can find
1...232425...127Latest