https://cypress.io logo
Join Discord
Powered by
# general-chat
  • c

    cold-terabyte-49897

    12/23/2021, 8:34 AM
    in a nutshell, I want to run different test cases for different users
  • p

    prehistoric-author-56179

    12/23/2021, 12:12 PM
    Hey everyone we stumbled into an issue in our CI after updating to v9.x.x, locally everything works as expected but on CI something goes wrong and doesn't really help us to figure out what is going on.
    Copy code
    The function exported by the plugins file threw an error.
    
    We invoked the function exported by `/home/runner/work/web/web/migration/cypress/plugins/index.cjs`, but it threw an error.
    
     Error: Not supported
        at module.exports (/home/runner/work/web/web/migration/cypress/plugins/index.cjs:2:5)
        at /home/runner/.cache/Cypress/9.2.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:90:12
        at tryCatcher (/home/runner/.cache/Cypress/9.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
        at Function.Promise.attempt.Promise.try (/home/runner/.cache/Cypress/9.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/method.js:39:29)
        at load (/home/runner/.cache/Cypress/9.2.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:87:7)
        at EventEmitter.<anonymous> (/home/runner/.cache/Cypress/9.2.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:198:5)
        at EventEmitter.emit (events.js:210:5)
        at process.<anonymous> (/home/runner/.cache/Cypress/9.2.0/Cypress/resources/app/packages/server/lib/plugins/util.js:19:22)
        at process.emit (events.js:210:5)
        at emit (internal/child_process.js:876:12)
        at processTicksAndRejections (internal/process/task_queues.js:81:21)
  • p

    prehistoric-author-56179

    12/23/2021, 12:14 PM
    This is on
    latest-ubuntu
    on GitHub Actions though when using
    latest-mac
    the response is even stranger
    Copy code
    Platform: darwin-x64 (20.6.0)
    Cypress Version: 9.2.0
        at /Users/runner/work/web/web/node_modules/cypress/lib/errors.js:330:17
        at tryCatcher (/Users/runner/work/web/web/node_modules/bluebird/js/release/util.js:16:23)
        at Promise._settlePromiseFromHandler (/Users/runner/work/web/web/node_modules/bluebird/js/release/promise.js:547:31)
        at Promise._settlePromise (/Users/runner/work/web/web/node_modules/bluebird/js/release/promise.js:604:18)
        at Promise._settlePromise0 (/Users/runner/work/web/web/node_modules/bluebird/js/release/promise.js:649:10)
        at Promise._settlePromises (/Users/runner/work/web/web/node_modules/bluebird/js/release/promise.js:729:18)
        at _drainQueueStep (/Users/runner/work/web/web/node_modules/bluebird/js/release/async.js:93:12)
        at _drainQueue (/Users/runner/work/web/web/node_modules/bluebird/js/release/async.js:86:9)
        at Async._drainQueues (/Users/runner/work/web/web/node_modules/bluebird/js/release/async.js:102:5)
        at Immediate.Async.drainQueues [as _onImmediate] (/Users/runner/work/web/web/node_modules/bluebird/js/release/async.js:15:14)
        at processImmediate (internal/timers.js:439:21) {
      known: true
    }
    Error: The cypress npm package is installed, but the Cypress binary is missing.
    
    We expected the binary to be installed here: /Users/runner/.cache/Cypress/9.2.0/Cypress.app/Contents/MacOS/Cypress
    
    Reasons it may be missing:
    
    - You're caching 'node_modules' but are not caching this path: /Users/runner/Library/Caches/Cypress
    - You ran 'npm install' at an earlier build step but did not persist: /Users/runner/Library/Caches/Cypress
    
    Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
    
    Alternatively, you can run 'cypress install' to download the binary again.
  • p

    purple-afternoon-2408

    12/26/2021, 1:17 AM
    hi team, we are upgrading yarn to v2, it working locally but no in the pipeline using image
    cypress/browsers:node16.5.0-chrome94-ff93
    . Is there a cypress image with higher node version
    v16.13.1
    ?
  • g

    gray-kilobyte-89541

    12/27/2021, 4:04 AM
    Cypress has no idea your component is NOT ready to process the input - it sees the input box which is enabled and starts typing. See https://www.cypress.io/blog/2019/01/22/when-can-the-test-click/ and https://glebbahmutov.com/blog/flaky-cy-type/ A very fast user can hit the same problem when the first part of the entered test disappears. You should disable the input box by default and enable it when the component attaches the event handlers.
  • m

    magnificent-beard-2043

    12/29/2021, 4:20 PM
    testFiles in cypress.json
  • g

    gray-kilobyte-89541

    12/29/2021, 9:55 PM
    new video: Visit Two Domains In The Same Cypress Spec

    https://youtu.be/Csjg1qktnU0▾

  • f

    famous-restaurant-30435

    12/30/2021, 3:47 PM
    I have a new post up! I discuss patterns for selecting DOM nodes in your tests by ranking different methods and why interacting with your DOM like a user should be your guiding principle. https://www.capocaccia.dev/posts/testSelectors
  • e

    enough-plastic-87422

    01/02/2022, 4:34 PM
    Is there anyway to use cypress to test for datatest ids before integration tests?
  • c

    clean-monitor-31240

    01/04/2022, 11:07 PM
    at Object../node_modules/is-ci/node_modules/ci-info/index.js (webpack:///node_modules/is-ci/node_modules/ci-info/index.js:5:1) at __webpack_require__ (webpack:///webpack/bootstrap:19:1) at Object../node_modules/is-ci/index.js (webpack:///node_modules/is-ci/index.js:3:18) at __webpack_require__ (webpack:///webpack/bootstrap:19:1) at Object.eval (webpack:///node_modules/cypress/lib/util.js:21:14) at Object../node_modules/cypress/lib/util.js (http://localhost:37869/__cypress/tests?p=test/e2e/support/index.js:87250:31) at __webpack_require__ (webpack:///webpack/bootstrap:19:1) at Object.eval (webpack:///node_modules/cypress/index.js:9:14) at Object../node_modules/cypress/index.js (http://localhost:37869/__cypress/tests?p=test/e2e/support/index.js:82972:31) at __webpack_require__ (webpack:///webpack/bootstrap:19:1) From previous event: at runScriptsFromUrls (http://localhost:37869/__cypress/runner/cypress_runner.js:177985:98) at Object.runScripts (http://localhost:37869/__cypress/runner/cypress_runner.js:177999:11) at $Cypress.onSpecWindow (http://localhost:37869/__cypress/runner/cypress_runner.js:167733:19)
  • c

    clean-monitor-31240

    01/04/2022, 11:07 PM
    can anyone help me in this
  • f

    future-eye-56254

    01/05/2022, 7:17 AM
    How to continue test execution with the rest of the data from the fixture file when an assertion fails with one of the test data. Ex: I have this json file as fixture, when I assert "email" from the first fixture data which is invalid cypress throws an error and stops execution. But I would like it to continue with the 2nd and 3rd fixture data and not stop execution at the 1st
  • f

    future-eye-56254

    01/05/2022, 7:17 AM
    [ { "name": "valid1", "email": "invalid1" }, { "name": "valid2", "email": "valid2" }, { "name": "valid3", "email": "valid3" } ]
  • g

    gray-kilobyte-89541

    01/05/2022, 2:37 PM

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

  • f

    future-eye-56254

    01/06/2022, 4:19 AM
    thank you
  • r

    rough-nightfall-90576

    01/06/2022, 11:26 PM
    Hi @Ceciliacreates. This issue has been open awhile. https://github.com/cypress-io/cypress-docker-images/issues/555 related to the issue above. It seems to be new in the 9.* cypress docker images. Seems like a lot of others are seeing similar issues. I think my original thought was the dbus warnings were an issue but it looks like it's the error on mkdir that @User is referencing
  • h

    handsome-cartoon-58565

    01/12/2022, 9:00 PM
    Hey, as my original question was about a problem (with using aliased
    cy.request()
    with
    cy.wait()
    ) that i solved, eventually i thought that i might ask about improving docs a bit by clarifying the case with aliased
    cy.request()
    and
    cy.get()
    i described on #763105090679865354 channel (which i think it is better to discuss on this channel) https://discord.com/channels/755913899261296641/763105090679865354/930928075032645662 So, would such clarification be helpful enough to put in the docs around the mentioned example?
  • w

    wonderful-match-15836

    01/14/2022, 5:22 PM
    It sounds useful, you could make a PR for the addition in the docs repo and get more concrete feedback: https://github.com/cypress-io/cypress-documentation
  • h

    handsome-cartoon-58565

    01/14/2022, 5:24 PM
    oh, i am glad it'd be useful 🙂
  • h

    handsome-cartoon-58565

    01/14/2022, 5:24 PM
    i'll try to contribute with this
  • p

    proud-pillow-92732

    01/19/2022, 1:53 PM
    Hey all! I am trying to migrate from cypress-file-upload to new selectFile. However, I can't just replace a basic attachFile with selectFile as it doesn't work with any of the browsers I tried except Firefox. Has anyone encountered this problem?
  • p

    proud-pillow-92732

    01/19/2022, 1:53 PM
    For reference it doesn't work for Chrome, Electron, Edge
  • f

    few-library-83191

    01/20/2022, 8:17 AM
    hi all, do you know how I use cy.intercept to check that NO requests are made to a specific url?
  • f

    few-library-83191

    01/20/2022, 8:32 AM
    Well I figured out an alternative, I can throw an error from the route handler if it gets called 🤷‍♂️ not too fancy but gets the job done
  • n

    numerous-kangaroo-93739

    01/20/2022, 5:13 PM
    Hello all
  • m

    millions-portugal-96585

    01/20/2022, 7:41 PM
    Hello
  • n

    numerous-kangaroo-93739

    01/20/2022, 8:25 PM
    how you doing
  • r

    rich-lamp-44536

    01/20/2022, 8:25 PM
    🤣
  • r

    rich-lamp-44536

    01/20/2022, 8:27 PM
    I will answer, so it's a bit more responding here ^^ I'm fine Just worked 11h today on a to vitest migration 🥳 @User What did you today? 🙂
  • n

    numerous-kangaroo-93739

    01/20/2022, 8:29 PM
    well trying to figure out how to type a const into a input field in cypress lol
1...262728...127Latest