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

    fresh-doctor-14925

    06/07/2022, 9:40 AM
    I just encountered a similar issue myself, but without validation. The issue for me was that I'd wrapped my call to the auth handler inside a
    waitUntil
    (from the
    cypress-wait-until
    library), and they didn't play nicely together Did you ever find a solution to this?
  • c

    cold-accountant-75560

    06/07/2022, 10:03 AM
    please can someone help me on that?
  • f

    fresh-doctor-14925

    06/07/2022, 10:15 AM
    It's been less than an hour since your initial post, please don't post multiple times for the same issue. It just adds noise If you can get it to work in chrome, why not set the browser to chrome in your headless runs? https://docs.cypress.io/guides/guides/launching-browsers#Chrome-Browsers
  • m

    mammoth-fish-55706

    06/07/2022, 10:30 AM
    but this would take the text of the button, right ? I need the attribute
    title
    from the button though
  • g

    gray-father-52711

    06/07/2022, 10:47 AM
    you can try this:
    cy.get('button.foo').invoke('attr', 'title').should('have.length', 11)
  • w

    wooden-family-9570

    06/07/2022, 10:52 AM
    Hi everyone. Would anyone be able to help with an cy.intercept() issue I've keep getting? Whenever I use cy.intercept() then alias for an API request I get a 400 error but when I open the requested from the cypress console the URL opens displays fine.
  • h

    handsome-traffic-40130

    06/07/2022, 10:56 AM
    Hello All, mb can someone help me with my issue, after update to v10 config file was rebuild and i have error
    'cypress' should be listed in the project's dependencies, not devDependencies.
    how i can fix? if it have to be not in devDeps can you say why?( the error in cypress.config.ts file)
  • c

    cold-accountant-75560

    06/07/2022, 11:00 AM
    it doesn't make the difference on my end to launch it on edge, or firefox, or chrome from cypress test runner. It all yields the same result. Seems it's its own GUI that cause the issue. Because If I visit the app on my chrome browser it works fine, while on cypress GUI it makes it to get disable. Do you have other options
  • f

    fresh-doctor-14925

    06/07/2022, 11:07 AM
    I don’t. Cypress does not play nicely with cross origin Iframes All I can suggest is to go straight to the iframe src and test from there, rather than embedded in a page
  • c

    cold-accountant-75560

    06/07/2022, 11:26 AM
    this is the behaviour, it works fine on chrome, but on cypress launcher it makes some elements from the front end to disappear, i'm not seeing any cors policy issue tho on the console
  • a

    aloof-doctor-27406

    06/07/2022, 11:54 AM
    Hello Cypress Discord 👋 - I have a question... is it possible to add an extra single user to our plan? We are currently on a plan that only allows 10 users but we need 11 or 12? The next plan up is quite a jump money wise, is it possible to add extra users 1 by 1?
  • f

    fresh-doctor-14925

    06/07/2022, 12:06 PM
    This is largely a community discord. For questions like that, you're better off emailing them
  • f

    fresh-doctor-14925

    06/07/2022, 12:07 PM
    Or sales@cypress.io will be able to figure something out with you
  • h

    hundreds-action-33616

    06/07/2022, 1:44 PM
    Unfortunately, that doesn't work. It fails on cy.visit('/'), it doesn't reach further
  • g

    gray-kilobyte-89541

    06/07/2022, 2:21 PM
    yeah it is hard to say what the page is doing without a reproducible example
  • b

    brave-apartment-73149

    06/07/2022, 2:39 PM
    Hello, guys! I'm trying to run an e2e tests inside a container, but have an issue with
    The Test Runner unexpectedly exited via a close event with signal SIGSEGV
    That's how my docker-compose looks like.
    Copy code
    version: '3'
    
    services:
        cypress:
            image: "cypress/included:10.0.3"
            environment:
                - DEBUG=cypress:*
                - DISPLAY=
            command: "--config-file e2e/cypress.json --browser chrome"
            volumes:
                - ./e2e/integration-test:/e2e
  • g

    gray-kilobyte-89541

    06/07/2022, 2:42 PM
    See https://glebbahmutov.com/cypress-examples/9.7.0/commands/assertions.html#have-attr-assertion-chain In your case it could be
    Copy code
    js
    cy.get('button.foo').should('have.attr', 'title').its('length').should('equal', 11)
  • a

    astonishing-animal-70542

    06/07/2022, 3:27 PM
    Hello there, I've got a very particular case where I might need to override an entire class when I run Cypress. Any idea how to do that? Initially, I was wondering about a stubbing approach; but returning arbitrary values it's not enough for my case, I really need to change the implementation when in Cypress. Thank you in advance
  • a

    abundant-apple-80156

    06/07/2022, 4:27 PM
    Hi, I'm working with the new CLI from testrail which requires a junit file to be imported to my companies testrail instance. The way the CLI links the test runs (either locally or through CI) and the existing cases in testrail is by matching
    testcase.name
    in the xml output with a custom field you add in testrail. The problem I'm running in to is that in the xml output from the test run,
    testcase.name
    is a concatenation of the describe text and the it text from the case. Is there any way to override this or add something to my case to specify this value in the junit output?
  • a

    abundant-apple-80156

    06/07/2022, 4:31 PM
    I use https://www.npmjs.com/package/cypress-iframe. It works fine for my case.
  • g

    gray-kilobyte-89541

    06/07/2022, 5:20 PM
    well you could mock the entire thing if you use webpack right in the JS bundle, search cypress.tips/search to find the video about it
  • s

    stale-gigabyte-61333

    06/07/2022, 5:29 PM
    Sorry for the stupid question. I started taking courses and at the first launch of Cypress I don't understand how to find cypress test runner. I attach two screenshots, the first one is what I see, and the second one is what I want to see. Help the noob, please!
  • g

    gray-kilobyte-89541

    06/07/2022, 5:48 PM
    click on E2E Testing and the click on the browser icon
  • a

    abundant-dress-88149

    06/07/2022, 6:19 PM
    Hi, I've noticed some of the tests in the project im working on get stuck quite often in CI, they dont throw any error just get stuck until CI pipeline times out. I noticed some of these tests stopped getting stuck when I added a few
    cy.wait()
    for calls to make sure the data is there before the assert, other tests got fixed by replacing
    .then($el => {...})
    with
    .should
    so im assuming the tests get stuck if they try to assert before time (imo they should fail since assert was not passing). I know this is caused by not following good practices when creating the tests but do you know if there is a way to force cypress to fail or log an error if this happens? I'm trying to fix them and takes a long time identify these things. or maybe other thing you recommend to approach this?
  • a

    abundant-apple-80156

    06/07/2022, 6:22 PM
    Does the same timeout happen when you run locally?
  • a

    abundant-dress-88149

    06/07/2022, 6:22 PM
    doesnt happen in my local, only in CI
  • a

    abundant-apple-80156

    06/07/2022, 6:24 PM
    possibly a difference in test env. Maybe resolution or viewport diff
  • a

    abundant-dress-88149

    06/07/2022, 6:27 PM
    interesting, how do you think the resolution/viewport would make these tests get stuck? I've seen tests in my local fail if elements are not in screen or are covered by other elements, do you think is something like this?
  • a

    abundant-dress-88149

    06/07/2022, 6:28 PM
    and thank you for your help
  • c

    colossal-car-14055

    06/07/2022, 6:31 PM
    Barrett, it sounds like you're having some of the problems I had working with iFrames. If you think that the cy.get is returning the object before it's data is loaded and you are not able to chain a .should try using a cy.wrap to wrap your get().then()
1...777879...252Latest