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

    faint-kangaroo-63063

    09/29/2022, 3:48 PM
    you're welcome - just know that I didn't test it, just googled it 🙂 so not sure it will work or not, but it looks legit on a first look
  • f

    faint-kangaroo-63063

    09/29/2022, 3:52 PM
    if that one will give out an error (as per documentation), but you want to avoid that, try req.reply() - stub out a response requiring no dependency on a real back-end; more details here: https://docs.cypress.io/api/commands/intercept#Controlling-the-response
  • p

    proud-breakfast-29892

    09/29/2022, 3:58 PM
    It indeed threw an error. The thing is, I want to block the request from happening, and not just hide the response
  • a

    acceptable-hamburger-48790

    09/29/2022, 4:34 PM
    would req.destroy() work for you ?
  • p

    proud-breakfast-29892

    09/29/2022, 4:35 PM
    Yup
  • a

    acceptable-hamburger-48790

    09/29/2022, 4:35 PM
    https://docs.cypress.io/api/commands/intercept#Request-Response-Modification-with-routeHandler
  • g

    great-answer-57072

    09/30/2022, 6:25 AM
    Hi, I am looking for the launchOptions in Cypress to specify the accept language before any test. I found the related usage but still have no idea. https://docs.cypress.io/api/plugins/browser-launch-api#Modify-browser-launch-arguments-preferences-extensions-and-environment I also found this post, but it seems not working https://stackoverflow.com/questions/54671266/setting-the-browser-language-in-cypress
  • g

    great-answer-57072

    09/30/2022, 6:50 AM
    my code trying to force using Chinese
    Copy code
    e2e: {
        setupNodeEvents(on, config) {
          on('before:browser:launch', (browser, launchOptions) => {
            if (browser.family === 'chromium') {
              launchOptions.preferences.default.intl = { accept_languages: 'zh-TW', selected_languages: 'zh-TW' }
              console.log(launchOptions.preferences.default.intl);
              return launchOptions;
            }
          })
        },
      },
  • s

    salmon-kite-6386

    09/30/2022, 11:55 AM
    Hi guys, a little bit dissapointed today, is cypress really better then Selenium, ranorex etc....
  • s

    salmon-kite-6386

    09/30/2022, 11:55 AM
    have an issue, googling and find people with same issue in 2020 and no fix....
  • s

    salmon-kite-6386

    09/30/2022, 11:55 AM
    Firefox "Whoops, we can't run your tests."
  • g

    glamorous-lighter-30340

    09/30/2022, 1:50 PM
    What is the issue you need help with?
  • i

    incalculable-rainbow-43330

    09/30/2022, 5:07 PM
    @lemon-oyster-64925 please let us know whats the problem as you know new technologies always take time to fill answers in forums
  • i

    incalculable-rainbow-43330

    09/30/2022, 5:08 PM
    Hi Team is there any way I want to pass the paths of the test cases which i wish to run in a file or dictionary and run them via cypress CLI Example File1.txt -- abc/cd/Doc1.spec.ts -- xyz/sa/Test.spec.ts -- cvd/dc/Testing.spec.ts and i want to run all the specs which are in the text file via CLI i dont want to make CLI manually like npx cypress run --spec="abc/cd/Doc1.spec.ts, xyz/sa/Test.spec.ts ..........." because if there are 1000 test cases failing then its a problem for me with specific string if i wish to use above approach so please help me with your valuable ideas thank you 🙂 the intension behind this is if i get some 3 test cases failing i will maintain them in a file then i will ask developers to fix the appropriate things then once they fix it i would like to run only this first Note: i would consider failing of this test cases even after using retries option for flaky test cases
  • i

    incalculable-rainbow-43330

    09/30/2022, 5:45 PM
    https://tenor.com/view/shoulder-shrug-gif-25011317
  • s

    strong-energy-6158

    10/01/2022, 6:24 AM
    Not sure this solution will be suitable to you. But just give a try. 1. create a file named specsList.js in the same path of your scripts 2. import the scripts which you want (eg: import 'path of the script') 3. run this js file npx cypress run --spec specsList.js (it will execute only the script names mentioned in specsList.js)
  • i

    incalculable-rainbow-43330

    10/01/2022, 8:08 AM
    thank you will try this 🙂
  • i

    incalculable-rainbow-43330

    10/01/2022, 3:04 PM
    When i run cypress in local or in Pipeline where will cypress tore the list of failed specs information ?
  • s

    stale-optician-85950

    10/01/2022, 8:09 PM
    All test stats are reported at the end of the test suite run, so locally it'll be in your terminal, and in CI it's in the build logs. If you mean how to keep this info long-term, you can of course use Cypress dashboard. I use a GH Actions package to send test run stats notifications to a Slack channel and also Post the results to a New Relic dashboard. So in summary you have many options.
  • i

    incalculable-rainbow-43330

    10/03/2022, 12:47 PM
    Is there any way I can log the spec paths of only failing test cases anywhere in my repo or file if any one know any example please let me know
  • a

    adorable-smartphone-87280

    10/03/2022, 2:47 PM
    This is off-topic, but if anyone uses Notion for your documentation at work (it's a great tool), you should take a look at the
    mermaid.js
    integration it supports. I spent some time over the weekend making a massive workflow diagram of some of our processes and it's a experience.
  • i

    incalculable-rainbow-43330

    10/04/2022, 8:03 AM
    is there any feature in plan by Cypress to integrate its Dash Board into Azure Devops Board plugin using market place ?
  • e

    eager-plumber-47271

    10/05/2022, 8:48 PM
    Has anyone used cy to automate any desktop applications? We have a project that requires some browser and some interaction with mainframe windows, I was wondering if that's possible. thanks
  • a

    adorable-smartphone-87280

    10/05/2022, 9:00 PM
    Not possible.
  • s

    stale-optician-85950

    10/05/2022, 9:10 PM
    You would need a tool like https://www.ranorex.com/ to achieve that seamlessly.
  • b

    busy-forest-53723

    10/06/2022, 7:19 AM
    Is docs.cypress.io in the middle of a revamp? Many pages 404.
  • b

    busy-forest-53723

    10/06/2022, 7:43 AM
    Now they're loading properly.
  • i

    incalculable-rainbow-43330

    10/06/2022, 8:48 AM
    How to exclude certain specs to be run in folder when npx cypress run is executed for example please see the image I don't want to execute my spec which is in Marketing/Sales/sc1111.spec.ts but at the same time I want it to execute via import statement mentioned in *Finance/Verify/sc1111-main.spec.ts * is there anything which I can do in folder level it self to stop it from running asking this as i have 100's of folders which are going to be like this and I don't want to mess up configuration file with exclude list so Please help me regarding this with your suggestions
  • g

    gray-kilobyte-89541

    10/06/2022, 10:59 AM
    check https://on.cypress.io/configuration there is a config option to exclude specs
  • m

    mysterious-kitchen-59722

    10/06/2022, 7:12 PM
    Hello All, after upgrading our cypress suite from 3.7 to 9.7, our tests are running very slow in the CI pipeline, any reason why? Does any of you facing the similar issue? people say cypress 8.5 has better performance, should I downgrade to 8.5?
1...848586...127Latest