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

    flat-waitress-43696

    05/22/2022, 11:37 AM
    nothing more specific
  • f

    flat-waitress-43696

    05/22/2022, 11:37 AM
    I tried the same and it works from postman
  • f

    fresh-doctor-14925

    05/22/2022, 11:42 AM
    If it’s a 500 then your server’s logs should be able to give you more information. Usually in my experience issues like this are due to you needing to specify the file as a Blob or have it sent as form data. Can’t really be any more specific than that without knowing why you got a 500
  • f

    flat-waitress-43696

    05/22/2022, 12:16 PM
    I dont have access to server logs, I tried convert it to blob, do you have an example with both blob / form data that really works ? Thanks
  • f

    fresh-doctor-14925

    05/22/2022, 1:07 PM
    Not immediately to hand, no. They’re on my work laptop and I’m on vacation. You should be able to figure out Blob/form by looking at the Cypress docs and examples on StackOverflow
  • b

    better-house-96424

    05/22/2022, 8:17 PM
    That would obviously work, but the whole point of this is that I want just want to set up the mocks once, and not have to deal with manually mocking it in every single test. 🤔
  • f

    fresh-doctor-14925

    05/22/2022, 9:12 PM
    > that would obviously work I get it’s frustrating when you’re stuck on a problem, but I’m volunteering my free time to help you. Please try to remember that when replying > not have to deal with manually mocking it In that case, why not place the setup in a
    beforeEach
    step in your support file as is suggested here https://stackoverflow.com/questions/48110258/how-can-i-execute-code-before-all-tests-suite-with-cypress. Then it will automatically happen before every single test
  • b

    better-house-96424

    05/22/2022, 11:17 PM
    Ahh tone doesn't always come through in text very well. Didn't mean that in any bad way. With the
    beforeEach
    method though wouldn't it slow down the tests reading and parsing a huge file (30,000 lines) before every test? I was hoping to find a way to set it up once before running all the tests. Does cypress have a beforeAll?
  • b

    broad-salesclerk-78343

    05/22/2022, 11:26 PM
    https://stackoverflow.com/questions/72324704/cypress-cant-load-assets-from-vites-devserver
  • f

    fresh-doctor-14925

    05/23/2022, 6:14 AM
    Not that I can think of. Cypress will clear much of the context after it completes an it() block. How long does it take to parse the schema?
  • f

    fresh-breakfast-88964

    05/23/2022, 9:30 AM
    Hello We want to use Cypress for microsoft dynamics 365 but the problem I'm facing is that the url is reloading itself. I cannot get access to the login page of micorsoft (it is very secured). I know that there is a option where you can make a API request instead of using there UI. But i am not familiar with this topic. Can someone help me with this situation of is someone familiar with using Cypress in combination with microsoft cloud applications?
  • h

    high-optician-91398

    05/23/2022, 10:09 AM
    Hello. I am migrating to Cypress and I am using NX (with Angular). I am trying to carry over the RWA knowledge to my app. So I started by migrating the
    getSelBy
    which should return
    Chainable<Element>
    but it complains unless I return
    Chainable<JQuery<Element>>
    I don't know if that is important or it is just a wrapper. Maybe I am missing some types or imports. Thanks!
  • f

    famous-truck-12698

    05/23/2022, 11:32 AM
    Hello folks. Has anyone used typeorm in Cypress? Need help with this.
  • t

    thousands-school-59219

    05/23/2022, 11:48 AM
    Hello, i am a newbe with cypress and a problem with test-runner i do not know how to help myself: i have a vue vite app with cypress and two tests. If i start testing with an npm script "cypress run" all works fine and i get results on command line. But if i start testing with npm script "cypress run --headed --no-exit" to see the runner, the runner opens and only executes one of my two test, and the button "view all test" at top left does not work. also i can't reload a test after haveing edtiting the spec. I allways have to reopen the runner by executing the script to see the changed spec. Any idea whats going wrong here? thanksa
  • c

    calm-hydrogen-37718

    05/23/2022, 11:50 AM
    I tried many things but I didn't find success. @gray-kilobyte-89541 Can you please look this issue....it will take your's 2 minute max.
  • d

    dazzling-angle-28206

    05/23/2022, 12:31 PM
    I'm not familiar with these options but have you tried cypress open? You have to start the test manually but it also gives you the option to just run one testfile at a time, you can select the browser which tests run in, and you can pin tests and use the inspector... ;-)
  • p

    plain-pencil-82789

    05/23/2022, 1:14 PM
    Hello, how can I connect a mssql database for testing at Cypress?
  • f

    famous-family-87715

    05/23/2022, 2:26 PM
    hiya has anyone had any issues getting an "Aww Snap" on their chrome browser whilst running cypress tests? I've already added the "numTestsKeptInMemory": 0, in all the cypress.json files that I have and still get the issue. Will you be able to provide some suggestions on how to get past this? I'm using Cypress 4.7.0
  • t

    thousands-school-59219

    05/23/2022, 2:30 PM
    Yes, thanks, i "installed" standalone cypress and this works as expected.
  • i

    icy-exabyte-68383

    05/23/2022, 3:57 PM
    I installed cypress and tried it out, but I cant get autocomplete for cypress (and mocha) get to work in Visual Studio. Anyone of you encountered this problem maybe before?
  • s

    sparse-angle-84185

    05/23/2022, 4:03 PM
    I am facing issue in drag and drop operation in Cypress
  • s

    sparse-angle-84185

    05/23/2022, 4:03 PM
    Can anyone provide me the custom code for drag and drop.
  • g

    gray-kilobyte-89541

    05/23/2022, 7:10 PM
    make a reproducible example and that might take two minutes
  • m

    magnificent-finland-58048

    05/23/2022, 8:07 PM
    cypress-real-events
  • c

    calm-hydrogen-37718

    05/24/2022, 7:26 AM
    @gray-kilobyte-89541 I don't have any example....I am working on only this project. If you want to see reproducible example....below is the link https://stackoverflow.com/questions/69680904/load-stripe-check-out-page-in-an-iframe This person have same issue like me.....Please give me a solution....if you know thanks
  • p

    powerful-gigabyte-69168

    05/24/2022, 1:25 PM
    Has anyone been testing pinia in vue3? In vue2 I'd used this sweet trick of exposing the entire vue instance on the window object during testing in order to grab the centralized store off it with
    cy.window().its('app.$store')
    like it shows in this article: https://www.cypress.io/blog/2017/11/28/testing-vue-web-application-with-vuex-data-store-and-rest-backend/ But in vue3 with composition api, there is no centralized store, just many individual stores that can (or not) be consumed by each component via an import of a
    useSomeStore()
    function. This function doesn't appear to be consumable directly in cypress tests, so I'm wondering how to access my pinia stores in cypress
    g
    • 2
    • 5
  • p

    purple-appointment-88654

    05/24/2022, 2:13 PM
    Is there a way to automate google sso login without doing http request..?
  • p

    powerful-gigabyte-69168

    05/24/2022, 2:15 PM
    Accessing Pinia Stores in Vue3 with composition api
  • g

    gray-kilobyte-89541

    05/24/2022, 2:24 PM
    that link has no reproducible example 🙂
  • f

    famous-family-87715

    05/24/2022, 4:36 PM
    is it possible to use some regular expression to the cy.get() parameter to have something like below, where "3" can be a digit from 1-9... ``.someClass > .someOtherClass-3 > [data-testid=timeline-thumbnail-3]`
1...697071...252Latest