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

    delightful-machine-77737

    09/27/2022, 2:51 PM
    Hello Everyone, I am looking to upgrade my Cypress version from the current 5.6.0 to the latest 10.8.0. Currently, the cypress is set up in a EKS cluster and it is executed over CI/CD using buildkite. If anyone has upgraded Cypress and can help me by sharing the best possible options.
  • f

    freezing-carpenter-51131

    09/28/2022, 10:37 AM
    Are you running on WSL or somewhere with a not-setup X11 server or a missing DISPLAY environment?
  • p

    proud-breakfast-29892

    09/28/2022, 2:34 PM
    Hey. Can anyone please navigate to the following URL using cy.visit and tell me if their test crashes for you or not?
    https://rom.my.universe.cdp.gigya.com
    p
    a
    • 3
    • 15
  • p

    proud-breakfast-29892

    09/28/2022, 2:35 PM
    You're supposed to see a login page
  • p

    proud-breakfast-29892

    09/28/2022, 2:35 PM
    I want to test a SAML Auth flow but Cypress closes itself every time it navigates to this url...
  • p

    prehistoric-restaurant-72560

    09/28/2022, 3:44 PM
    Hey Can anyone please navigate to the
  • k

    kind-minister-59159

    09/28/2022, 5:52 PM
    Hoping I could get some advice with component testing. Our developers use a storybook. Is there any documentation or anyone with experience with Cypress Component testing and Storybook?
  • b

    best-flower-17510

    09/28/2022, 5:55 PM
    Great question, can you direct this to the #755921564108587038 channel?
  • p

    proud-breakfast-29892

    09/29/2022, 10:42 AM
    Is there a library that can record har logs during test for Cypress 10?
  • a

    acceptable-hamburger-48790

    09/29/2022, 10:44 AM
    https://www.npmjs.com/package/@neuralegion/cypress-har-generator
  • p

    proud-breakfast-29892

    09/29/2022, 10:44 AM
    I tried to use it in my config file and I got this
  • m

    mysterious-belgium-25713

    09/29/2022, 10:45 AM
    Did you set it up like this.
    Copy code
    js
    const { defineConfig } = require('cypress');
    const {
      install,
      ensureBrowserFlags
    } = require('@neuralegion/cypress-har-generator');
    
    module.exports = defineConfig({
      // setupNodeEvents can be defined in either
      // the e2e or component configuration
      e2e: {
        setupNodeEvents(on, config) {
          install(on, config);
    
          on('before:browser:launch', (browser = {}, launchOptions) => {
            ensureBrowserFlags(browser, launchOptions);
    
            return launchOptions;
          });
        }
      }
    });
  • p

    proud-breakfast-29892

    09/29/2022, 10:53 AM
    Yes. Ok so apparently it's a different issue.
  • p

    proud-breakfast-29892

    09/29/2022, 10:53 AM
    Now I doesn't happen to me
  • s

    some-thailand-3202

    09/29/2022, 12:22 PM
    Hello everyone. Is there any guide how to implement Cypress tests with using Gherkin language for test cases description? Something similar to a SpecFlow in C#
  • m

    mysterious-belgium-25713

    09/29/2022, 12:27 PM
    Hi @some-thailand-3202 , this is the cucumber plugin for cypress. https://www.npmjs.com/package/@badeball/cypress-cucumber-preprocessor Also added the quick start guide to get you on your way and the basics https://github.com/badeball/cypress-cucumber-preprocessor/blob/HEAD/docs/quick-start.md https://github.com/badeball/cypress-cucumber-preprocessor/blob/a2702f5ce247c96269a0432358ed919b596a4dbb/docs/cucumber-basics.md
  • s

    some-thailand-3202

    09/29/2022, 12:28 PM
    Awesome. Thank you so much 🙂
  • e

    early-motherboard-68721

    09/29/2022, 3:05 PM
    if I have nested describes describe('Desc1', () => { describe('Desc1.1', () => { }); describe('Desc1.2', () => { }); }); then when I run it in parallelization is the Desc1, Desc 1.1, and Desc 1.2 will be distributed to machines or will they executes in the same machine just wanted to check if it's going to save some time or not in case of nested test suits
  • e

    early-motherboard-68721

    09/29/2022, 3:06 PM
    is Nested Test Suits will help us in saving some time with parallaization
  • e

    early-motherboard-68721

    09/29/2022, 3:06 PM
    by running even nested Test Suits in different mechines
  • m

    mysterious-belgium-25713

    09/29/2022, 3:22 PM
    If you use the cypress dashboard it will only parallel the files. So all test in 1 file will be run on the same machine.
  • e

    early-motherboard-68721

    09/29/2022, 3:26 PM
    ok so you mean if i have Desc1 Desc1.1 Desc1.2 in one file with out being nested then also they wont be sent to different machine right?
  • e

    early-motherboard-68721

    09/29/2022, 3:26 PM
    so it means parallalization will work on FIle specific tests than test suits Right? @mysterious-belgium-25713 🙂
  • f

    faint-kangaroo-63063

    09/29/2022, 3:31 PM
    @early-motherboard-68721 , Cy runs specs in parallel, not the tests themselves - so if you have 2 files, with 1 or more describe/it each, it will run them on 2 machines (if you set it up to do so). If you have 1 file with multiple describe/it, and you set up parallelization, it will not be able to run them in parallel. More details here: https://docs.cypress.io/guides/guides/parallelization#Splitting-up-your-test-suite
  • e

    early-motherboard-68721

    09/29/2022, 3:32 PM
    so there is a chance that the nested test suits may cause delay in execution as they wont be distributed among the machines so is it best practice to avoid nested test suits ? 🤷
  • f

    faint-kangaroo-63063

    09/29/2022, 3:36 PM
    well, if you need them for some reason, it's not against good practices to use them (although I personally prefer to use
    describe
    and then
    context
    blocks, for readability). but it has nothing to do with running tests in parallel 🙂 in your example above, you will have 2 describe blocks, under one main describe block, which can be a good plan, in case you need it; just to make sure you are aware, you will still need to add some
    it
    blocks as well (these are the tests, the
    describe
    act more as the test suite). if you want more details about how to organize your Cy tests and how these work, please see: https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests
  • f

    faint-kangaroo-63063

    09/29/2022, 3:38 PM
    to answer your question now, they should not be avoided. but if you do have nested suites, they will be ran sequentially as part of the spec file they are in, and not concurrently
  • p

    proud-breakfast-29892

    09/29/2022, 3:43 PM
    Is it possible to intercept a request and cancel it?
  • f

    faint-kangaroo-63063

    09/29/2022, 3:47 PM
    @proud-breakfast-29892 , is this more or less what you're looking for? https://stackoverflow.com/a/69343382/19625528
  • p

    proud-breakfast-29892

    09/29/2022, 3:47 PM
    Oh, looks like it is. Thank you :)
1...838485...127Latest