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

    wonderful-match-15836

    07/26/2022, 2:45 PM
    I want to run not only filename cy js
  • l

    little-father-39577

    07/26/2022, 4:13 PM
    Hey everyone I am trying to log window console commands to the CLI output for cypress run (it seems like a lot of people have tried to do this.) I tried to stub these commands and pass the arguments to a task. But it seems like you can't call a cy.task in a callback with out a promise error. Does anyone have this working? Here is what I tried to do.: Cypress.on('window:before:load', (win) => { cy.stub(win.console, 'log').callsFake((...messages) => { cy.task('logToCLI', messages) }); }); setupNodeEvents(on, config) { on('task', { logToCLI(messages: string[]) { console.log(...messages); return null; } }) This is the error that I get when I try that : > Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.
  • q

    quiet-scientist-15239

    07/26/2022, 5:45 PM
    do you have asyncs in any of your tests? also, i think you can accomplish what you're trying to do by using this plugin: https://github.com/flotwig/cypress-log-to-output the ReadMe for that hasn't been updated to honor 10.0 syntax but you should be able to initialize it via this snippet in your cypress config: { e2e: { setupNodeEvents(on) { require('cypress-log-to-output').install(on) } } }
  • f

    flaky-advantage-68831

    07/26/2022, 5:46 PM
    Hi All, I am trying to use the retries option in the global config I have it set to 2 so it should run 3 times My tests only seem to try the attempt 1 time, no retries are attempted and then skips the remaining tests This also leads to the tests appearing like the suite has passed at the end I would expect it to attempt the test 3 times but this is not happening
  • g

    gray-kilobyte-89541

    07/26/2022, 6:36 PM
    Cannot use cy commands inside a callback https://glebbahmutov.com/blog/cypress-out-of-band/
  • l

    lemon-yak-55678

    07/26/2022, 7:21 PM
    I’m seeing “This browser was not launched through Cypress. Tests cannot run.” when I try to select chrome. Electron seems to work
  • m

    mysterious-kitchen-59722

    07/26/2022, 8:39 PM
    Hello All, I started fresh project with cypress 10.3.0 and Cucumber , but facing below error when trying to run the test, any insight?
    b
    • 2
    • 2
  • b

    billions-yak-76150

    07/26/2022, 9:49 PM
    Hi All. Just getting started with Cypress. I'm working on setting up Cypress to run as part of a Jenkins pipeline. Does anyone have a tutorial or similar documentation they can point me to? I've googled, but just have come up with the example app pipeline which I can't seem to get running.
  • g

    gray-kilobyte-89541

    07/26/2022, 11:06 PM
    https://on.cypress.io/ci
  • b

    bland-pencil-28843

    07/26/2022, 11:28 PM
    Hello! I need your help, it is happening to me that when I want to hover over an element, the element is "selected" but the menu does not display, not even doing an .invoke('show'). I also pass a should('be.visible') to it and the weird thing is that it returns positive. Will it be the page?
  • g

    gray-kilobyte-89541

    07/26/2022, 11:35 PM
    trying using real hover from cypress-real-events plugin
  • c

    chilly-jordan-51429

    07/27/2022, 12:24 AM
    did you ever figure this out @faint-table-6487 ?
  • p

    proud-printer-45627

    07/27/2022, 8:06 AM
    Hi, after upgarding cypress to V10 , cy.readfile() and cy.writefile() restart test in loop, if i delete this part of code , every thing works fine again . help me please
    Copy code
    cy.readFile("cypress/fixtures/member.json").then((data) => {
                var listTag = data["member"];
                listTag["tags"].push(tag);
                // write the merged object
                cy.writeFile("cypress/fixtures/member.json", data);
            });
    f
    • 2
    • 8
  • h

    handsome-lion-1748

    07/27/2022, 8:58 AM
    Thanks for the reply and the reference, I appreciate it!
  • f

    fresh-doctor-14925

    07/27/2022, 9:38 AM
    Hi
  • r

    refined-engineer-18140

    07/27/2022, 9:55 AM
    It worked! Thanks!
  • h

    helpful-truck-53930

    07/27/2022, 12:10 PM
    Hello, i have a question about the default folder structure wich cypress create after clicking the "Select Manually" Button in the Application. It is possible to block or disable the default folder structure? Thanks
  • s

    swift-controller-90067

    07/27/2022, 1:54 PM
    is there any way to fast forward a css animation?
  • s

    swift-controller-90067

    07/27/2022, 1:55 PM
    i tried clock and tick, doesn't work
  • a

    abundant-eve-90571

    07/27/2022, 2:12 PM
    HI i am unable to run cypress, if anyone got any clues on how to solve, would appreciate thanks
  • g

    gray-kilobyte-89541

    07/27/2022, 2:13 PM
    you did not start your application
  • g

    gray-kilobyte-89541

    07/27/2022, 2:13 PM
    https://cypress.tips/search
  • a

    abundant-eve-90571

    07/27/2022, 2:14 PM
    sorry what do you mean?
  • a

    abundant-eve-90571

    07/27/2022, 2:41 PM
    how do we start a localhost using terminal?
  • l

    lemon-yak-55678

    07/27/2022, 2:58 PM
    Edge isn’t working either
  • g

    gray-kilobyte-89541

    07/27/2022, 3:53 PM
    how do you start your application locally? something like
    npm start
    for example, I don't know, it is your application
  • l

    lemon-yak-55678

    07/27/2022, 5:02 PM
    I’m also not seeing the cypress menu to let you pick tests on windows chrome, anyone know how to fix this?
  • m

    mysterious-kitchen-59722

    07/27/2022, 5:39 PM
    Hello All, Any input for this question?
  • l

    lemon-yak-55678

    07/27/2022, 6:35 PM
    https://github.com/cypress-io/cypress/issues/17367 Seems to be a currently open issue
    w
    • 2
    • 20
  • h

    helpful-truck-53930

    07/27/2022, 6:47 PM
    Do someone have a solution for that ?
1...115116117...252Latest