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

    fresh-doctor-14925

    08/04/2022, 9:48 AM
    Not if the only difference between them is the URL. Then all the other steps can be in a single command. Seems pretty straightforward to me. Anyhow, that's my suggestion. I'm going back to work now
  • g

    gentle-accountant-4760

    08/04/2022, 9:49 AM
    Got it 😁 appreciate that. thanks!
  • g

    gray-kilobyte-89541

    08/04/2022, 12:02 PM
    use https://github.com/bahmutov/cypress-each
  • g

    gentle-accountant-4760

    08/04/2022, 12:03 PM
    How does that work if you want to run pararell? Is that a possibility?
  • i

    incalculable-quill-48851

    08/04/2022, 1:09 PM
    Hi, I tried to upgrade my cypres version from 9.2.1 to 10.0.4 and made changes in config file but I'm getting spec files are not found error even though I have given right path in config file
  • s

    sparse-cpu-70188

    08/04/2022, 1:27 PM
    can you share a repo-link?
  • a

    adventurous-dream-20049

    08/04/2022, 2:46 PM
    Is this referring to tags added to the Cypress Dashboard when using the
    --tag
    flag?
  • a

    adventurous-dream-20049

    08/04/2022, 2:49 PM
    @gentle-accountant-4760 Looks like this may have been an issue for a while: https://github.com/cypress-io/cypress/issues/17513
  • g

    gray-kilobyte-89541

    08/04/2022, 2:51 PM
    https://github.com/bahmutov/cypress-each#run-specs-in-parallel
  • f

    fresh-doctor-14925

    08/04/2022, 2:51 PM
    That looks to be about being unable to find the chrome beta, rather than performance issues with it
  • a

    adventurous-dream-20049

    08/04/2022, 2:56 PM
    Yeah, iirc he mentioned removing :beta helped resolve the issue. My thought is the two may be related since that is from a much older version. I'll check internally and add to my notes
  • g

    gorgeous-jordan-86065

    08/04/2022, 3:01 PM
    Yep! Need the ones with the ' gone from the filters!
  • w

    wonderful-match-15836

    08/04/2022, 3:24 PM
    Vuetify
  • f

    fierce-lion-2381

    08/04/2022, 3:38 PM
    Hey, does Cypress have bug atm to upload image strictly by API request? If not, any suggestions where to see something, tried probably every solution from internet
  • g

    gray-kilobyte-89541

    08/04/2022, 4:51 PM
    can you provide a reproducible example showing the bug?
  • b

    busy-ability-89181

    08/04/2022, 5:02 PM
    Hey guys, trying to build out a command that will work with WordPress for catching specific AJAX calls (this works fine), but in some instances I will need to call a click handler or something on a button (sometimes I do not), my thought based on just pure JS was around creating a callback, if that callback is set to trigger it, but i think i'm missing something here -- can anybody shed any light on this?
    Copy code
    export function interceptAdminAjax(action: string, preWaitCallback?: CallableFunction ) {
        cy.intercept('POST', '/wp-admin/admin-ajax.php', (req) => {
            if (req.body.indexOf('action=' + action) > -1) {
                req.alias = action;
            }
        });
    
        if ('undefined' !== typeof preWaitCallback) {
            preWaitCallback();
        }
    
        cy.wait( '@' + action ).should(({request, response}) => {
            console.log(`${action} response:`, response?.body);
            expect(response?.statusCode).to.eq(200)
            expect(response?.body.success).to.eq(true)
        })
    
    }
  • b

    busy-ability-89181

    08/04/2022, 5:02 PM
    Copy code
    cy.interceptAdminAjax('create_new_class', ()={
          cy.get('#confirm-add-class-btn').click()
        })
  • b

    busy-ability-89181

    08/04/2022, 5:03 PM
    basically my
    preWaitCallback
    was my lack luster attempt at doing this, where the idea is to call some kind of function/callback (or really some kind of
    cy
    method) BEFORE calling the
    wait
  • b

    busy-ability-89181

    08/04/2022, 5:06 PM
    haha .. wow ...okay user error
    ()={
    durp should be
    ()=>{
  • b

    busy-ability-89181

    08/04/2022, 5:06 PM
    sorry thought it was something cypress specific i seem to have just thrown basic js troubleshooting out the window 🤦‍♂️
  • f

    fierce-lion-2381

    08/04/2022, 5:21 PM
    @gray-kilobyte-89541 I see people are uploading image via API in Cypress by creating custom form_request xhr method, for example like on photo ( I saw that from Filip Hric ), I couldn't do anything, it was giving me bad request etc
  • g

    gray-kilobyte-89541

    08/04/2022, 5:25 PM
    Sorry you are experiencing this, but without a reproducible example (like what does your server expect?) cannot help
  • f

    fierce-lion-2381

    08/04/2022, 5:28 PM
    Basically its POST method with content type being multipart/form-data and file can be passed as binary, but when I pass it, I get error bad request you need to choose file etc, even tho I provided it through fixtures
  • a

    astonishing-byte-69184

    08/04/2022, 9:57 PM
    Any idea why blockHosts does not block?
  • a

    astonishing-byte-69184

    08/04/2022, 9:57 PM
    https://stackoverflow.com/questions/73242580/cypress-blockhosts-not-blocking
  • a

    astonishing-byte-69184

    08/04/2022, 10:20 PM
    Having same issue, nothing is being blocked. I don't get it
  • b

    breezy-coat-40046

    08/05/2022, 6:31 AM
    Does anyone know how to skip the selection pages when using cypress open? https://github.com/cypress-io/cypress/discussions/23051
  • f

    fresh-doctor-14925

    08/05/2022, 7:05 AM
    I've left an answer on your question but I'll add it here too. There's not currently a way to set this via the UI, but you can pass in commands like so:
    Copy code
    npx cypress open --e2e --browser electron  // goes directly into the spec view
    npx cypress open --component --browser electron // does the same for component tests
  • h

    helpful-truck-53930

    08/05/2022, 8:04 AM
    Hi i want to handle a banner during cypress test. My company had include a banner and the cover the page. How i can handle that cookie banner ?
  • h

    hallowed-florist-3643

    08/05/2022, 8:05 AM
    Hi everyone. I have such a problem with cypress tests where I have a folder inside e2e that has lots of folders in it with certain test files (ex. test1 folder - test1.cy.js). How can I run all the tests at once in the window without clicking each test by myself? Thank you ahead!
1...121122123...252Latest