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

    brash-magazine-98754

    07/08/2022, 10:54 AM
    Hi Everyone, does anyone faced this kind of issue while trying to fetch code-coverage Code coverage "Code coverage Cypress and Storybook, can't instrument my code" facing the similar problem as below https://stackoverflow.com/questions/61059917/code-coverage-cypress-and-storybook-cant-instrument-my-code any suggestions
  • p

    polite-painting-51763

    07/08/2022, 12:10 PM
    that's why i posted mate. I am generating a random data. Need some suggestions how to update in excel. I tried generating new excel, but my app is expecting file in certain format, which is tough to generate using code. I have readymade excel template, where i just have to update data and give it to app
  • c

    cuddly-thailand-33926

    07/08/2022, 2:19 PM
    I have dynamic it blocks based on URL Thing is they are running in testRunner But with CLI and same URL they are not running (the dynamic ones)
  • m

    mammoth-animal-54787

    07/08/2022, 3:10 PM
    Why is cypress directory being git ignored yet I don't see a single instance in my ignores for cypress
  • s

    stocky-library-42566

    07/08/2022, 3:57 PM
    Anyone got problem with running tests ? "Cannot read properties of undefined (reading 'isServer')" it is not often but occurs in cypress newest version, i tried with different versions of node.js but did not help, and npm is 8.6.0 https://github.com/cypress-io/cypress/issues/22291
  • p

    proud-traffic-2752

    07/08/2022, 4:05 PM
    I am unable to preserve session/cookies in headless mode while I am able to preserve the session via the test runner.Has anyone encountered this before?
  • h

    helpful-megabyte-37209

    07/08/2022, 4:24 PM
    Hey does anyone knows how to use iframes when they do not have ID or any useful tags ? And there are four of them 😱
  • c

    cuddly-thailand-33926

    07/08/2022, 7:28 PM
    You can us .eq(index)
  • b

    bitter-fountain-36713

    07/08/2022, 9:35 PM
    There should be other meaningful attributes that make them unique or filter by
    :visible
    .
  • m

    magnificent-telephone-56514

    07/09/2022, 9:54 AM
    My e2e tests currently reside as follows in the following directory pattern eg
    cypress/integration/signup/signup_spec.js
    in Cypress 10 is there a way of keeping this structure? I can't figure out a way of setting up a specPattern that does this
  • e

    elegant-river-87347

    07/10/2022, 9:52 AM
    hi
  • f

    fresh-plastic-30342

    07/10/2022, 11:43 AM
    stuck at this problem for days don't know what to do can anyone help?
  • p

    polite-king-89054

    07/10/2022, 2:23 PM
    My test suddenly fail. I checked and found that when the window is minimize they are failing more. someone have a solution for this one?
  • g

    gray-kilobyte-89541

    07/10/2022, 4:19 PM
    Can you show your spec code. There is something wrong with your javascript
  • e

    elegant-river-87347

    07/11/2022, 12:28 AM
    Hi , what can i do to chain this event ? I dont see i can wait for an api request to alias and use that..
  • d

    dazzling-angle-28206

    07/11/2022, 2:35 AM
    If you want to wait for an api call to return you'd want to use intercept with an alias and wait for that. Waiting an arbitrary amount of time for things like this is an antipattern. https://docs.cypress.io/api/commands/wait#Alias
  • e

    elegant-river-87347

    07/11/2022, 5:13 AM
    I can intercept the the alias for google analytics calls , for intercepting the calls for this Google analytics it has too many calls so i might miss the others..
  • m

    many-city-96644

    07/11/2022, 8:13 AM
    Hello, I have a problem with cypress starting two times on the first test. I am using the baseUrl and it was working fine until I changed the URL. Before the URL was pointing at stage env and now I run the app that I am testing locally so the baseUrl is pointing to the app URL locally. So the only difference is that the app I am testing is now running locally and before it was on some server.
    w
    • 2
    • 3
  • h

    hundreds-refrigerator-31812

    07/11/2022, 8:49 AM
    Hi, We have a WPF application that uses cefsharp browser to host web site (Angular) - in other words - hybrid application. I am interested to run an automation test in Cypress. Before we had implemented testing this using protractor and it was working well by adding in the protractor configurator: 'chromeOptions': { 'debuggerAddress': "127.0.0.1:8088" } and setting the appropriate baseUrl. I found on github some kind of discussion about it https://github.com/cypress-io/cypress/issues/5984 My question is it possible to test this in a similar way to protractor, or make some workaround using cypress ?
  • c

    cold-doctor-52849

    07/11/2022, 9:22 AM
    I moved all my custom commands into separate folders and files, but test runs utilising imports from anywhere other than commands.js seems quite a bit slower.. I guess that's the trade-off with having your files more organised?
  • w

    wonderful-match-15836

    07/11/2022, 11:46 AM
    Cypress starting twice
  • f

    fresh-doctor-14925

    07/11/2022, 6:22 PM
    Hello folks, Getting to grips with typing in an
    input
    field housed within a shadow DOM. Using the
    .shadow()
    API I'm able to type in a string manually in Chrome, but when I attempt this in Cypress/Chrome, the field clears itself after every keypress. The
    input
    will clear when a user clicks out of the field. From what I can see, it seems like the focus is being lost after every keypress Has anyone else encountered something like this?
    e
    • 2
    • 4
  • e

    elegant-river-87347

    07/12/2022, 11:33 AM
    Yes this is happening to me too.. like if i type something,, it will be remove and replace the default.. im following this.. anyone can help us please.. im following this.. thanks
  • f

    fresh-doctor-14925

    07/12/2022, 11:34 AM
    Good to know it isn't just me. Could you maybe get a video recording of what's happening and share it in the above thread?
  • e

    elegant-river-87347

    07/12/2022, 11:38 AM
    at the moment its working fine now, but sometimes its happening again.. i will record when I encountered it again..
  • e

    eager-chef-77344

    07/12/2022, 12:22 PM
    Hi y'all, I got an app I'm testing, this app uses a 3rd party tool that spins off a modal (in an iframe) for the user to go through. I want to stub this and skip this iframe. What would be the best way of achieving this? suppose I got -
    Copy code
    import { foo } from '@somenone/I-dont-know'
    and I want to stub it.
  • c

    cuddly-thailand-33926

    07/12/2022, 1:02 PM
    I'm calling my function recursively from within a fixture within a .then But the JSON file is being read as static, it is being updated by another parallel run but when I stringify the JSON I'm seeing it as Static
  • n

    nice-lawyer-99289

    07/12/2022, 7:49 PM
    hey, it probably depends on what frontend framework you use in the project but the general approach is pretty much the same. You must gain access to the piece of code that you're going to stub through a global object available from the global
    window
    object. I'm afraid you can't just like that import a function to be stub and simply mock it
  • s

    shy-kilobyte-33352

    07/12/2022, 7:52 PM
    Hey all. New to cypress so forgive my naive question! Is it possible to retrofit an existing cypress framework to use cucumberstudio?
  • f

    flat-rocket-60743

    07/12/2022, 11:14 PM
    I am very new to the tech industry, and just learning QA/JavaScript. I have done a little studying and will continue my learning, but in the mean time. I have installed cypress, and it opened, but in my terminal I have the following message:
1...646566...127Latest