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

    mysterious-area-98742

    02/18/2022, 6:54 AM
    bump
  • b

    bitter-restaurant-81279

    02/20/2022, 12:23 AM
    hello. what are the best practices for files structure in CY? I've made this structure but all files are displayed in cypress UI, even are not spec files.
    a
    • 2
    • 3
  • a

    adorable-smartphone-87280

    02/20/2022, 4:03 AM
    Cypress file structure
  • b

    bitter-restaurant-81279

    02/20/2022, 2:51 PM
    solution: I' ve edited cypress.json file and included this item
    "ignoreTestFiles":["*.hot-update.js","*.request.js","*.request.ts","*.json"]
    must help someone
  • w

    wide-hospital-71307

    02/21/2022, 9:55 AM
    the last few .type i did are completely ignored, even after intercepting requests to make sure everything is loaded. i dont need help, i will just change the val with normal js, just a rant because type has been having problems for years now and still nothing is done.
  • m

    mysterious-area-98742

    02/21/2022, 6:20 PM
    bump bump
  • t

    thankful-controller-3208

    02/22/2022, 10:07 AM
    Hi all, I've got a problem, wondering if anybody else met with similar issue recently. I've had a working very basic test scenario for a logging page, which was working fine 'till now. The site isn't loading after I click on Login in Cypress. If I do it manually in any browser it works. Any advices would be great, thanks!
  • p

    powerful-orange-86819

    02/22/2022, 10:56 AM
    Hi all, Recently i started fixing flaky tests, and i've read the retry-ability article on cypress documentation and bahmutov's https://glebbahmutov.com/cypress-examples/9.2.0/recipes/retry-ability.html#using-aliases, but i'm still having issues with the tests in the CI, they are breaking, because they are not retrying, none of the solutions worked for me
  • p

    powerful-orange-86819

    02/22/2022, 10:59 AM
    this is example of my code that breaks in CI but runs ok on local enviroment, can someone tell me if they have faced simmilar issue? Also the status takes a little time to show in the table after the request (~30ms) and it doesnt find it for the 4000ms of retrying
    Copy code
    js
    cy.findBySel("modal").within(()=>{
    cy.contains("SELFIE_WEBSITE").parent().find("td").eq(1).as("docStatus");
    cy.get("@docStatus").should("have.text", "VERIFIED");
    })
  • w

    white-agent-38646

    02/22/2022, 6:24 PM
    This morning I started to get an error trying to run cypress via a command line in my console. It worked yesterday I was at 9.5.0 and rolled back to 9.4.1 both have the same error. node_modules/.bin/cypress open An unexpected error occurred while verifying the Cypress executable. Please search Cypress documentation for possible solutions: https://on.cypress.io Check if there is a GitHub issue describing this crash: https://github.com/cypress-io/cypress/issues Consider opening a new issue. ---------- Error: spawn Unknown system error -86 ---------- Platform: darwin-x64 (21.3.0) Cypress Version: 9.4.1
  • c

    cold-doctor-52849

    02/22/2022, 7:35 PM
    Hi! Is there a way to pass on randomly generated variables to reuse them in other tests in the spec file? Say I initialize a new user at the beginning of the spec file with faker.js, I then expect the value of it to be inherited by all the tests within scope, but they get assigned a new value instead. How should I go about this? Thanks
  • m

    mysterious-area-98742

    02/22/2022, 8:00 PM
    bump bump bump
  • s

    some-printer-73508

    02/23/2022, 8:39 AM
    πŸ‘ Hi There, I have an issue with cypress-grep, if anyone can help? > > Argument of type '{ tags: string; }' is not assignable to parameter of type 'TestConfigOverrides' > https://github.com/cypress-io/cypress/issues/20327
  • p

    powerful-orange-86819

    02/23/2022, 8:58 AM
    Try .invoke(text).then((text) => { expect(text).to.eq("Reset Password")}) its how i use it in my tests and it works flawlessly, text dates, numbers and everything
  • m

    miniature-application-21641

    02/24/2022, 6:57 AM
    anyone had troubles with cy.select triggering React onChange event callbacks since upgrading to 9.5? (on elements)
  • m

    miniature-application-21641

    02/24/2022, 6:59 AM
    πŸ˜…
  • m

    mysterious-area-98742

    02/24/2022, 8:19 AM
    Thank you for the suggestion! However, I am wondering: I want to use
    contains
    text; as the DOM.text output is not "exact science" so as to match with
    to.eq.
    πŸ˜• I have already shown that I can use
    equals
    , but I don't want it
  • m

    mysterious-area-98742

    02/24/2022, 8:19 AM
    Hello there! If an https://docs.cypress.io/guides/references/assertions#BDD-Assertions "diagnostic output" does not satisfy me, who's issue is that? Cypress' or Chai's? Compare: > expected to contain Reset Password with: > expected to have text Reset Password, but the text was Reset password.
  • l

    loud-honey-66910

    02/24/2022, 1:46 PM
    https://discord.com/channels/755913899261296641/755913900024791046/946388838798999612
  • l

    loud-honey-66910

    02/24/2022, 1:47 PM
    help please ^^
  • c

    cool-dentist-94229

    02/25/2022, 1:24 PM
    Hello all, I need a help If you have any ideas regarding this situation, I passed all the specs in Run mode, but in the Gitlab CI/CD pipeline, it's stuck at the second action with timout 120000ms + 3 retries πŸ˜’ PS: the platform I'm working with is a bit heavy
  • m

    millions-london-89567

    02/26/2022, 12:09 PM
    Hey Guys, quick one - does anyone know how to search for something specific in an api call (The call has an array of 10 users) - (For example searching for a user by their email address or searching for a user by their name and then bringing up all of that users info)? Been researching and so far I can't find anything, would really appreciate the help πŸ™
  • c

    cold-doctor-52849

    02/26/2022, 1:23 PM
    bump
  • l

    loud-honey-66910

    02/27/2022, 1:26 AM
    Looks like Cypress is not expecting the response behavior of the web channel when using Firebase and Cypress this is the issue I think is about Bad XHR performance with Google Cloud Firestore.
  • l

    loud-honey-66910

    02/27/2022, 1:27 AM
    is there any help around this ? I cannot use { experimentalForceLongPolling: true }) to fix it since it slow down the rendering of the app
  • l

    loud-honey-66910

    02/27/2022, 1:29 AM
    When making requests to Firestore inside of Cypress, XHR responses take more than 60 seconds. too many request just for a simple element verification with firebase I can see the XHR requests being made, I can even see the application updating with the right data (that was obviously returned from Firestore), but the requests stay pending in Cypress. Visiting the same url in my browser (also Chrome), I can see the XHR requests and the responses.
  • a

    adorable-smartphone-87280

    02/27/2022, 4:37 PM
    It looks like you’re writing tests that depend on each other. I’d avoid that if possible.
  • a

    adorable-smartphone-87280

    02/27/2022, 4:38 PM
    Are you using cy.intercept()?
  • l

    loud-honey-66910

    02/27/2022, 9:34 PM
    No, I'm not using cy.intercept(), I'm just cypress-firebase lib to login and it does login normally but then the test start timing out or even worst they start hanging in the air pending with no error response reply
  • l

    loud-honey-66910

    02/27/2022, 9:35 PM
    more related to this :
1...505152...252Latest