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

    wide-hospital-71307

    01/13/2022, 10:52 AM
    can this error not be solved or suppressed?
  • c

    clever-arm-19437

    01/13/2022, 4:38 PM
    hi, I'm having problems when testing an application built in JSF. My test simply does a click on login button
    cy.get('[data-track-name="payment-login"]').click()
    The element exists and receives the click. However, there is an Ajax request that should return a modal, but in Cypress this never happens. Somehow the response never comes and the modal is doesn't open. This happens along the whole platform in different places (when there is an Ajax request) I have checked documentation but I couldn't find anything related to this. does anyone have an idea or advice on how to proceed with this? thanks in advance
  • h

    handsome-cartoon-58565

    01/13/2022, 5:13 PM
    > However, there is an Ajax request that should return a modal, but in Cypress this never happens how do you check that Ajax is not send? have you tried manually clicking on the button inside Cypress browser - is it sending Ajax then?
  • b

    brainy-gigabyte-77223

    01/14/2022, 12:25 AM
    Hi, i need help. Developing an API where we have a specific error that we want to return in the response when 'content-type' header is not included in request headers. however cy.request by default always adds content-type. I can't test this part of my api with cypress due to this. Is there any way to have my post request exclude content-type ?
  • g

    gray-kilobyte-89541

    01/14/2022, 12:52 AM
    maybe escape and make your own request not using cy.request? https://glebbahmutov.com/blog/cypress-request-and-cookies/
  • b

    brainy-gigabyte-77223

    01/14/2022, 4:52 AM
    thanks! got it to work with 'got' 🙂
  • c

    clever-arm-19437

    01/14/2022, 9:17 AM
    The request is sent but the response from server is received with missing parts. Like Cypress would be filtering out some parts of the response. This happens either running the test or clicking manually inside Cypress. Of course in Chrome/Firefox, everything works perfectly
  • h

    handsome-cartoon-58565

    01/14/2022, 9:41 AM
    do you have
    cy.intercept
    on the regarding route anywhere in test or hook?
  • h

    handsome-cartoon-58565

    01/14/2022, 9:41 AM
    maybe some proxy?
  • b

    bumpy-yacht-37274

    01/14/2022, 10:46 AM
    Hi, I'm using guards for checking element visibility but
    .click()
    throws error about element not attached to DOM:
    getTaskCard(title).should("be.visible").click();
  • h

    handsome-cartoon-58565

    01/14/2022, 11:07 AM
    you can try debug it https://glebbahmutov.com/blog/debug-visibility/
  • b

    bumpy-yacht-37274

    01/14/2022, 11:08 AM
    but the
    should("be.visible")
    guard passes
    w
    • 2
    • 3
  • w

    wonderful-match-15836

    01/14/2022, 5:13 PM
    dom attachment
  • w

    worried-alligator-98114

    01/18/2022, 8:23 AM
    hey peeps !
  • w

    worried-alligator-98114

    01/18/2022, 8:28 AM
    any recommandation about how to group or slice tests suites of a Vue app integration/e2e tests ?a file by page ?a file by user feature standpoint ? a file by resource/DTO ? Would tip for later, features revolving around a resource, it would group the edit in the same file, but i am not sure 🧐 Found very clear recommandations about the folder structure, but i am doubting about the file splitting part 🙂
  • f

    fancy-match-96032

    01/18/2022, 3:40 PM
    i commonly see it done by page (or folder containing multiple specs for a page), but ultimately what you want are specs that can test things in isolation. check out this video starting at ~3:40

    https://www.youtube.com/watch?v=5XQOK0v_YRE▾

    for some more thoughts at the end of the day it's pretty subjective depending on your particular application, so you could just start one way and iterate as your app grows
  • w

    worried-alligator-98114

    01/18/2022, 4:47 PM
    thank you 🙂
  • v

    victorious-telephone-50839

    01/18/2022, 6:30 PM
    Hello everyone Please I have a question : I have 401 when cypress click on the button of "login" but when I tray manually I can log with success, I don't know where is the problem :/
  • v

    victorious-telephone-50839

    01/18/2022, 6:34 PM
    my code is :
  • a

    adventurous-dream-20049

    01/18/2022, 9:17 PM
    I'd like to understand a little more about your use case and have a couple questions: Is the goal to test the ability to login, or is logging in necessary to begin another part of testing? Are you redirecting to a different domain?
  • v

    victorious-telephone-50839

    01/19/2022, 8:14 AM
    Hello, the goal is to test the ability to login yes after being connected the user should be redirected to a different domain where we see the avatar of the user but in my case when cypress clicks on loggin button, there is a redirection to another domain but we still not be connected :/
    a
    • 2
    • 4
  • t

    thankful-rocket-39348

    01/19/2022, 12:50 PM
    Hello, I am trying to build a testing suite project for multiple websites where I can have a config with environment variables set per project. I'd like to be able to then execute the tests for a given website by using the UI. I could not find how to do this and I have several other small questions. Is there anyone offering some tutoring who could walk me through setting this up and answering some questions for an hour? I would pay for this Thank you!
    f
    • 2
    • 4
  • n

    nice-cartoon-39902

    01/19/2022, 3:02 PM
    I'm trying to update from cypress-file-upload to the shiny new cy.selectFile and with the removing of mimetype I'm not currently able to. Our application checks to ensure that the file type of the dropped file is "application/pdf" and now it only comes across as a null string. Is there any override property I can assign File Type back to so that the cy.selectFile will have File Type like "upload" used to have?
  • c

    clever-arm-19437

    01/19/2022, 4:55 PM
    Hi, thanks for the help. Finally I figure out what the problem was. my app is using the user-agent to serve whether desktop or mobile app. I set the user-agent on cy.visit() to be mobile. However, the user-agent is only used in that navigation and doesn't keep it for subsequents actions. So my app thinks the user agent changed and didn't work. I have solve it by setting user-agent at general level in cypress.json as all my tests run on mobile. Again, thanks for your reply
  • a

    adventurous-dream-20049

    01/19/2022, 5:56 PM
    Auth 401
  • a

    adventurous-dream-20049

    01/19/2022, 6:25 PM
    There is currently an open GH Issue (https://github.com/cypress-io/cypress/issues/19751) that is being prioritized to be released asap. I recommend setting a GitHub notification for real time updates.
  • n

    nice-cartoon-39902

    01/20/2022, 11:43 AM
    Great! Thank you for pointing me at that.
  • f

    fancy-match-96032

    01/20/2022, 2:15 PM
    multiple projects
  • n

    numerous-kangaroo-93739

    01/20/2022, 6:10 PM
    Good afternoon, can someone point me into the right direction on how to type a a variable into a cy.type()
    w
    • 2
    • 1
  • w

    wonderful-match-15836

    01/21/2022, 12:03 AM
    Type
1...454647...252Latest