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

    colossal-car-14055

    06/07/2022, 6:32 PM
    That will allow for the built in retry logic in cypress to not just retry the assertions in the .then but the entire chain.
  • a

    abundant-apple-80156

    06/07/2022, 6:33 PM
    yeah, exactly that
  • a

    abundant-dress-88149

    06/07/2022, 6:35 PM
    than you both, @abundant-apple-80156 I'll try adding viewPort height & width in cypress.json and see what happens. I'll also take a look at the
    cy.wrap
    @colossal-car-14055 suggested thank you both
  • s

    sticky-energy-17458

    06/07/2022, 6:54 PM
    Hi
  • s

    sticky-energy-17458

    06/07/2022, 6:54 PM
    Can anyone help me ?
  • b

    busy-vegetable-18177

    06/07/2022, 7:00 PM
    yes
  • b

    busy-vegetable-18177

    06/07/2022, 7:01 PM
    if you ask a question
  • a

    abundant-dress-88149

    06/07/2022, 7:01 PM
    @sticky-energy-17458 shoot
  • s

    sticky-energy-17458

    06/07/2022, 7:03 PM
    I have multiple cards over website and I need to verify that certain text is existing on each card or not , so first I verify the number of cards appearing and then I need to verify that text is appearing on each of the card. I tried loop but it's not working
  • b

    bulky-wall-40221

    06/07/2022, 7:34 PM
    I need to get an id value out my url or one of the requests but I'm not sure how I can do that. Does anyone happen to know?
  • a

    abundant-dress-88149

    06/07/2022, 8:28 PM
    I enabled debug mode since cypress gets stuck in CI at a random test without displaying any error. I see this message
    cypress:launcher chrome stderr: [0607/201915.992016:FATAL:memory.cc(38)] Out of memory. size=524288 +178ms
    after that aborts some requests and
    cypress:server:util:process_profiler
    loops printing memory stats until CI pipeline time outs
  • a

    abundant-dress-88149

    06/07/2022, 8:30 PM
    so, if im reading the logs well chrome gets out of memory
  • a

    abundant-dress-88149

    06/07/2022, 8:32 PM
    do you know how can I solve this? I already set
    --disable-dev-shm-usage
    if browser is chromium
  • a

    abundant-dress-88149

    06/07/2022, 8:38 PM
    I noticed pipeline completes successfully if test are ran with electron instead of chrome but I get this in logs:
    Failed to adjust OOM score of renderer with pid 995: Permission denied (13)
    and other errors logged that dont break the pipeline
  • a

    abundant-apple-80156

    06/07/2022, 10:12 PM
    Possibly you need to have a bigger container running your tests
  • a

    abundant-apple-80156

    06/07/2022, 10:21 PM
    Can you just regex it?
  • c

    chilly-vase-64353

    06/07/2022, 11:13 PM
    👋 I've been evaluating Cypress for the company I work at and it really looks awesome. Say we have our dev envs in a remote Linux machine and we use VSCode in Windows to ssh into that to work on the app we are building. Any pointers as to how to get the Cypress UI working in this scenario during development? I hope I make sense.
  • a

    adorable-smartphone-87280

    06/07/2022, 11:23 PM
    Sort of depends if you are looking to run Cypress against dev environments as a TDD practice, or against built-and-hosted environments as e2e QA process.
  • c

    chilly-vase-64353

    06/07/2022, 11:24 PM
    thanks! the latter would be more like it
  • c

    chilly-vase-64353

    06/07/2022, 11:28 PM
    well, I guess that would not be entirely true, because at this point I would like to add the tests to the existing codebase and it would be important to "see" what we are doing with the test itself? I understand that we could integrate Cypress into the CI pipeline (headless mode?), but that is not the goal right now if that is where you were going
  • a

    adorable-smartphone-87280

    06/07/2022, 11:32 PM
    If you want to run your tests against
    test.domain.com
    then you can just write and run them on your local machine and ignore your dev environment. If you want to run your tests against
    localhost
    then you'll need Cypress running on your dev VMs.
  • a

    adorable-smartphone-87280

    06/07/2022, 11:33 PM
    We run our tests against hosted environments, so in a QA context, not a TDD context for devs.
  • a

    adorable-smartphone-87280

    06/07/2022, 11:33 PM
    but both approaches have value.
  • c

    chilly-vase-64353

    06/07/2022, 11:33 PM
    ahh, gotcha
  • c

    chilly-vase-64353

    06/07/2022, 11:33 PM
    yes, that makes sense
  • a

    adorable-smartphone-87280

    06/07/2022, 11:34 PM
    we write them and run them locally to make sure the tests are valid, then we run them in CI as a cron job.
  • a

    adorable-smartphone-87280

    06/07/2022, 11:34 PM
    in every case we are targeting a hosted env though, not
    localhost
  • c

    chilly-vase-64353

    06/07/2022, 11:35 PM
    right, I think if we can reach the hosted env from the "locally installed Cypress" we should be good to go, at least as a start 🤔
  • a

    adorable-smartphone-87280

    06/07/2022, 11:36 PM
    or that.
  • a

    adorable-smartphone-87280

    06/07/2022, 11:37 PM
    if you do choose to ever implement Cypress in CI, I really recommend the Cypress Dashboard for playback and debugging.
1...787980...252Latest