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

    thousands-caravan-76569

    11/16/2022, 8:47 PM
    Hello, I'm using cypress 10.3.1 and for some reason in the test runner after running all the tests - I am unable to go back to previous tests and go through it step by step and follow asserts visually in the test runner. is there a setting I need to set?
  • g

    gray-kilobyte-89541

    11/16/2022, 8:55 PM
    you have a race condition - you are intercepting AFTER clicking, so sometimes it might not catch the network call. https://glebbahmutov.com/blog/cypress-intercept-problems/#the-intercept-was-registered-too-late Define your intercepts BEFORE any event that can trigger it
  • f

    few-oyster-82478

    11/16/2022, 11:12 PM
    does the CI break if you exceed the test results threshold of a plan?, or it just stops saving the results?
  • g

    gray-kilobyte-89541

    11/16/2022, 11:28 PM
    stops saving the results
  • r

    red-smartphone-84750

    11/17/2022, 2:37 AM
    Thanks, that helped me
  • p

    plain-notebook-78259

    11/17/2022, 2:54 AM
    I know this is a ""silly"" question but i have one checkbox with a value that changes everytime and i need check this specific one crash it someone have some tip about it? Im just thing about use shoud but dont know if have a better option
  • b

    bitter-fountain-36713

    11/17/2022, 4:06 AM
    If it has text you could get it with
    .contains()
  • f

    future-eye-56254

    11/17/2022, 4:07 AM
    same from this morning
  • f

    future-eye-56254

    11/17/2022, 4:07 AM
    Did this get resolved ?
  • f

    future-eye-56254

    11/17/2022, 6:26 AM
    I suddenly started receiving this ECONNREST Error from cypress on my local and Azure devops (another build server)
  • f

    future-eye-56254

    11/17/2022, 6:28 AM
    I am trying to an api endpoint using cypress and it was working fine until last night, there is no new code deployment, no infra changes etc... I can hit the same endpoint and get a success using curl and K6. What could Cypress be doing with my request?
  • s

    stale-optician-85950

    11/17/2022, 8:15 AM
    Nope, I raised an issue in GH Cypress issues: https://github.com/cypress-io/cypress/issues/24704
  • s

    some-controller-43140

    11/17/2022, 12:54 PM
    @gray-kilobyte-89541 - how to resolve cypress absolute path issue ReactJS project - version 16.13.0, using cypress version - 10.3, "webpack": "^5.70.0", No typescript facing error while running cypress open for component testing. Error start The following error originated from your test code, not from Cypress. > Cannot find module 'state/cart/operations' When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. Cypress could not associate this error to any specific test. We dynamically generated a new test to display this failure. Error End _____________________________________________________________________________________________________________________ Webpack.config.js resolve: { alias: { www: path.resolve(__dirname, "./src/www"), app: path.resolve(__dirname, "./src/app"), bv: path.resolve(__dirname, "./src/bv"), gtmEvents: path.resolve(__dirname, "./src/gtmEvents"), legalAgeByCountry: path.resolve(__dirname, "./src/legalAgeByCountry"), external: path.resolve(__dirname, "./src/external"), config: path.resolve(__dirname, "./src/app/config"), utils: path.resolve(__dirname, "./src/app/utils"), state: path.resolve(__dirname, "./src/app/state"), renders: path.resolve(__dirname, "./src/app/renders"), components: path.resolve(__dirname, "./src/app/components"), cypresscomponents: path.resolve(__dirname, './cypress/components') }, fallback: { fs: false }, extensions: [".js", ".json", ".jsx"], }, _____________________________________________________________________________________________________________________ cypress/plugin/index.js const webpack = require('@cypress/webpack-preprocessor'); module.exports = (on) => { const options = { webpackOptions: require('../../webpack.config'), watchOptions: {}, }; on('file:preprocessor', webpack(options)); };
  • s

    some-controller-43140

    11/17/2022, 12:56 PM
    Error stack ERROR in ./src/app/components/Checkout/Step3/invoiceLayout.js 26:19-54 Module not found: Error: Can't resolve 'state/support/operations' in '../src/app/components/Checkout/Step3' ERROR in ./src/app/components/Checkout/Step3/invoiceLayout.js 28:18-52 Module not found: Error: Can't resolve 'state/support/selectors' in '../src/app/components/Checkout/Step3' ERROR in ./src/app/components/Checkout/Step3/invoiceLayout.js 30:19-52 Module not found: Error: Can't resolve 'state/paths/operations' in '../src/app/components/Checkout/Step3' ERROR in ./src/app/components/Checkout/Step3/invoiceLayout.js 36:16-49 Module not found: Error: Can't resolve 'utils/methods/newrelic' in '../src/app/components/Checkout/Step3'
  • f

    faint-spring-80499

    11/17/2022, 1:08 PM
    👋 Hi there. Is anyone facing issues with v11.1.0 of the Cypress App crashing when closed (on Mac)?
  • c

    careful-tent-30457

    11/17/2022, 1:13 PM
    I'm having this every time I close in v10.9.0 as well
  • g

    gray-kilobyte-89541

    11/17/2022, 1:19 PM
    yes all the time, here is the issue about this crash https://github.com/cypress-io/cypress/issues/20101
  • p

    polite-potato-14743

    11/17/2022, 6:21 PM
    any of you guys using cypress-if? Seems pretty straight forward but of course i'm not successful with it 😅
  • p

    polite-potato-14743

    11/17/2022, 6:23 PM
    just an example but does this look wrong?
  • p

    polite-potato-14743

    11/17/2022, 6:23 PM
    cy.get('.user-button') .if('visible').click() .then( cy.get('.logout-button').click()) .else() .log('nothing to do')
  • p

    polite-potato-14743

    11/17/2022, 6:24 PM
    i just get a test failure that says expected undefined to be visible but i thought if it was not visible it would just go to the else?
  • p

    polite-potato-14743

    11/17/2022, 6:31 PM
    also w/o visible it just fails also
  • p

    plain-notebook-78259

    11/17/2022, 7:28 PM
    not have any text this value in data-row always change everytime i delete an accurence (i make this so can delete one person of a table for exemple)
  • f

    fresh-doctor-14925

    11/17/2022, 7:53 PM
    I suggest adding a fixed test ID to that item. That will make it easier for you
  • p

    plain-notebook-78259

    11/17/2022, 7:54 PM
    Ooooh thanks 🥰
  • e

    enough-winter-72260

    11/17/2022, 8:51 PM
    Need some help with reading a JSON file.
    • 1
    • 3
  • r

    ripe-market-44926

    11/17/2022, 9:30 PM
    has anyone been able to setup a cypress github workflow using pnpm? i'm having some troubles. i keep getting the
    The cypress npm package is installed, but the Cypress binary is missing.
    . Which is a helpful error message except I don't know why the binary is missing :/ the cypress action seems to be able to install dependencies fine (including cypress) if i use pnpm lock and setup pnpm prior to the cypress step. except when it comes time to run the tests it can't find the binary i've tried including the actions/cache action i see in some of the examples but that doesn't seem to be helping. the action was working successfully before the switch to pnpm, so something about pnpm seems to be causing this binary location confusion?
  • m

    mysterious-belgium-25713

    11/17/2022, 9:32 PM
    try pnpm dlx cypress install Is your cypress in a different folder then your root package.json
  • r

    ripe-market-44926

    11/17/2022, 9:33 PM
    oo i will try that. i was trying to do that with
    npx cypress install
    . forgot that i should be using pnpm to do that. thanks i don't believe it's in a different folder? cypress is listed as a dependency in package.json and goes to node modules in the root like the rest of the packages
  • m

    mysterious-belgium-25713

    11/17/2022, 9:34 PM
    You can also check my repo on pnpm. It has a github action yaml
1...207208209...252Latest