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

    rough-parrot-23069

    07/11/2022, 7:10 PM
    Hello guys. I'm setting up a project to run unit tests. Are component tests the same as unit tests in cypress? Or can I use e2e test setup for unit tests?
  • r

    rough-parrot-23069

    07/11/2022, 7:11 PM
    And I'm using cypress 10
  • a

    alert-area-86576

    07/11/2022, 7:20 PM
    Hi , Does anyone know how to resolve this issue? execution got stuck after 3 test run in cypress dashbooard
  • b

    brief-candle-53311

    07/11/2022, 7:22 PM
    Hi good people I'm new and still learning cypress, my cypress is failing to start with an error attached Kindly assist
  • m

    magnificent-finland-58048

    07/11/2022, 8:25 PM
    you could do that you could also return some result out of the function, destructure it like a react hook , assign to a local var and use that local var through the it blocks
    Copy code
    js
    let ninjaVar, ninjaVar2, ninjavar3
    
    before(() => cy.doStuff().then(({so, many, vars}) => {
    ninjaVar = so
    ninjaVar2 = many
    ninjaVar3 = vars
    })
    
    it('...', () => {
      cy.log(ninjaVar)
      ...
    })
    check out these https://dev.to/muratkeremozcan/crud-api-testing-a-deployed-service-with-cypress-using-cy-api-spok-cypress-data-session-cypress-each-4mlg https://dev.to/muratkeremozcan/api-testing-event-driven-systems-7fe
  • b

    bitter-match-90736

    07/12/2022, 7:31 AM
    My requirement is, to record video clips for successed e2e runs. This work with cypress very well, but the console in the left, I need to hide. The reason for that is, that we like to use this records as manual or tutorial. Of course, I can edit all videos, but we have so many changes to be actual.
  • b

    bored-angle-54834

    07/12/2022, 8:01 AM
    Hi there, i want to test drag&drop functionality with cypress but having issues, since it doesn't do anything. In particular i want to drag item up 2 places in the same container. I've tried to trigger drag events, mouse events and nothing worked.. Using angular v11, cypress v8 (needed to stay on lower version since with 9 and 10 we were having issues) and we are using kendo library (their drag and drop functionality). Any idea?
  • c

    creamy-minister-50636

    07/12/2022, 8:42 AM
    Hi all. Has anyone tried to automate a login process that involves multi-factor authentication? User is logged in only after a push notification is clicked on a separate Android device. Has anyone had any luck bypassing that notification step using, I don't know, a cypress request or something like that?
  • s

    some-park-44701

    07/12/2022, 8:47 AM
    I'm a beginner on cypress, but I'd guess it depends on how you handle the MFA. If your own back-end handles it, you should be able to extract the code it sends and use it to verify.
  • c

    creamy-minister-50636

    07/12/2022, 8:50 AM
    Everything is "ours". Back-end and the Android app that sends the notification. That's why I don't think this is impossible, just looking around to see has anyone done it
  • e

    elegant-river-87347

    07/12/2022, 11:35 AM
    thank you so much..
  • b

    breezy-airline-46546

    07/12/2022, 3:03 PM
    Hello everyone. Does someone is a Ionic cypress expert? I am trying to test my 'ion-select' with select-options but i haven't fond something that fit my need...
  • b

    bitter-fountain-36713

    07/12/2022, 3:12 PM
    If you can create a sample repo that reproduces your issue, then more should be able to help.
  • b

    breezy-airline-46546

    07/12/2022, 3:21 PM
    I have created a slackoverflow topic: https://stackoverflow.com/questions/72954417/impossible-to-select-value-cypress-ionic-ion-select. You will find my code but I dont know how to make a repo
  • f

    fresh-nail-30646

    07/12/2022, 3:28 PM
    Is it possible to combine text and regex when calling
    cy.contains()
    ? I'm calling
    cy.contains($title.text() + " " + /\(Clone \d+\)/)
    , but it looks like the regex is being interpreted literally, throwing the error
    Timed out retrying after 25000ms: Expected to find content: 'DCT - 2:15:58 PM API /(Clone \d+)/' but never did.
  • g

    gray-kilobyte-89541

    07/12/2022, 4:58 PM
    That is JavaScript - if you concatenate a string and a regex it just takes the regex as a string
    Copy code
    'foo' + /^bar$/
    'foo/^bar$/'
  • g

    gray-kilobyte-89541

    07/12/2022, 5:00 PM
    what is the HTML DOM it creates? It is pretty much impossible to say what the problem is without seeing where it fails and the HTML markup ionic generates after it processes the data
  • b

    breezy-airline-46546

    07/12/2022, 5:26 PM
    Ionic has his on HTML element
  • g

    gray-kilobyte-89541

    07/12/2022, 5:32 PM
    There is shadow dom there too, but here is what you can do - find the closes example to what you are doing here https://ionicframework.com/docs/api/select
  • d

    dazzling-garden-59866

    07/13/2022, 3:30 AM
    Hi all, I'm new to Cypress and working on a Rxjs/rx-stomp test , how can I subscribe the Rxjs Observable and do some tests? here is my code the two debugger was not fired and the test in the subscribe block didn't work Any help would be appreciated!!
  • n

    nice-restaurant-99469

    07/13/2022, 8:46 AM
    Hi all, I am having some difficulties understanding what is happening with following. I am experimenting with accessibility testing and one of the tasks I am facing is running a full webpage against a certain predefined set of rules. I mean the [wcag2a, wcag2aa, wcag2aaa, wcag21a, wcag21aa, wcag21aaa, ... etc]. So what is going wrong? I am expecting to have a lot more errors when running wcag21aaa, but I got none (it even passes). I am mainly looking for someone that can guide me a little in the world of cypress-axe / axe-core in cypress. My interpretation of the levels is following (this could be me understanding wrong) wcag2a (lowest level) wcag2aa (includes wcag2a + some extra stuff ) wcag2aaa (includes wcag2a + wcag2aa + some extra stuff )
  • c

    careful-tent-30457

    07/13/2022, 8:59 AM
    Hey, I'm struggling to get code coverage from my Cypress component tests, I'm using React and Vite with Istanbul and it works great in e2e tests but not when running component. any suggestions?
  • b

    brash-librarian-71449

    07/13/2022, 9:26 AM
    Hello everyone, I want to enable Test Retry feature for my tests that I run on TeamCity. And my question is will it retry test on TeamCity if it's muted there?
    n
    • 2
    • 2
  • a

    agreeable-candle-29594

    07/13/2022, 10:04 AM
    Hi, I faced the unknown issue with the visiting the localhost of certain project. After this messages it redirects me to the new tab with the login page The problem is that it is open in a new tab and can not be worked with out of the cypress page
    n
    b
    • 3
    • 2
  • r

    rhythmic-guitar-55789

    07/13/2022, 10:40 AM
    Hi, did you instantiate rxStomp somewhere above? If not, I think you might want to try something like
    cy.wrap(new rxStomp)
  • b

    bright-motherboard-31539

    07/13/2022, 10:46 AM
    Hi, i'm trying to write some component tests for my app (Vue3, Webpack5, npm monorepo with workspaces, Ubuntu 20.04) When I start a test, even an empty one, i receive this error ->
    Copy code
    ERROR in ../../../../.cache/Cypress/10.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-dev-server/dist/aut-runner.js 4:0-44
    Module not found: Error: Can't resolve 'core-js/modules/es.error.cause.js'
  • b

    bright-motherboard-31539

    07/13/2022, 10:46 AM
    e2e tests works fine
  • d

    dazzling-garden-59866

    07/13/2022, 11:01 AM
    Hi, I instantiate the rxStomp instance and config it right above the code. I just swap the order of .watch and .publish then it just work! Though I haven't figured out the reason. Thank you for your help!
    r
    • 2
    • 2
  • r

    rhythmic-guitar-55789

    07/13/2022, 11:22 AM
    Hi I instantiate the rxStomp instance
  • n

    nice-manchester-42957

    07/13/2022, 12:52 PM
    Hey testitos! Does anybody know if a way to subscribe to internal events like this one (
    wait:for:xhr
    )? https://github.com/cypress-io/cypress/blob/276f0f8b54c5577e309fc4da11ebf31c42e14bd4/packages/driver/src/cy/commands/waiting.ts#L285
    Cypress.on('wait:for:xhr')
    doesn't seem to pick it up.
1...106107108...252Latest