https://cypress.io logo
Join DiscordCommunities
Powered by
# general-chat
  • c

    crooked-microphone-65524

    04/24/2023, 3:20 PM
    @many-airline-45402 Do you have any idea?
  • m

    many-airline-45402

    04/24/2023, 3:28 PM
    I don't know about this one. Did you look at https://webpack.js.org/concepts/#loaders? You might need to activate debugging to get more information.
  • i

    incalculable-rainbow-43330

    04/24/2023, 4:42 PM
    Any article which helps in suggesting when this common error in cypress occurs "is being covered by another element:" and most of times its Flaky 😦
  • d

    dazzling-thailand-9844

    04/24/2023, 7:00 PM
    Here is a nice article by @gray-kilobyte-89541 https://glebbahmutov.com/blog/debug-visibility/. Hope this helps you.
  • h

    hundreds-author-68171

    04/24/2023, 7:55 PM
    Hi, is there a way to set the number of machines to use for parallelism?
  • e

    enough-truck-68085

    04/24/2023, 8:03 PM
    Yes, you just need to know the syntax of your CI Provider
  • e

    enough-truck-68085

    04/24/2023, 8:04 PM
    https://docs.cypress.io/guides/continuous-integration/ci-provider-examples#Guides
  • m

    many-airline-45402

    04/25/2023, 6:49 AM
    Hi @johnson_boom Which CI provider are you interested in using?
  • m

    mysterious-psychiatrist-29678

    04/25/2023, 9:27 AM
    hi guys. I've an issue with our Cypress test. There is a test that had been running flawlessly for weeks/months but have started to fail recently. Investigating a bit and turned out that a request header's origin field contains wrong value. Surprisingly the value is the same that is set a bit later as parameters for a cy.wait(). As a fix the header value is reset to a meaningful value. No browser, cypress version has changed. Do you have any idea?
    Copy code
    cy.intercept('POST', '**/token', (req) => {
          Cypress.log({ name: 'Origin of token request before update:', message: req.headers['Origin'] })
          Cypress.log({ name: 'Will set it to:', message: origin })
          req.headers['Origin'] = origin
        }).as('token')
      cy.visit(link)
      cy.wait('@reponseFromBackend', { timeout: 70000 })

    https://cdn.discordapp.com/attachments/763114122065739818/1100352277161709618/image.pngâ–¾

  • h

    helpful-country-95146

    04/26/2023, 3:05 PM
    Aw man, been waiting for this conference all day, then went to join and realized I dont have zoom instealled, lol
  • b

    best-flower-17510

    04/26/2023, 5:47 PM
    I had the same issue yesterday on my personal computer lol We will share the recording on our Youtube page. If you subscribe you will receive a notification when its live 😀 https://www.youtube.com/channel/UC-EOsTo2l2x39e4JmSaWNRQ
  • l

    lemon-holiday-89994

    04/26/2023, 5:55 PM
    I'm setting up a new cypress project and noticed that the scafolded files that get created fail eslint. Either double quotes, or missing ; or a missing newline. Has anyone else noticed?
  • m

    many-airline-45402

    04/26/2023, 6:28 PM
    Hi @lemon-holiday-89994 some changes are in the pipeline for the examples which come from https://github.com/cypress-io/cypress-example-kitchensink but they are not the failures which you mention. Could you give an example of a scaffolded test spec file which fails and details about which test(s) are failing? Also which rules you are using.
  • Rules are just plugin cypress
    l

    lemon-holiday-89994

    04/26/2023, 7:05 PM
    Rules are just "plugin:cypress/recommended" the e2e.js file is missing a ; on line 17 and a newline at the end of the file the spec it builds for you as a sample is missing ; at the end of every line, or almost every line line 1 of the cypress.config.js file is using a double quoted string in the require It isn't a showstopper, but kind of annoying to get if you are using the recommended eslint rules
    m
    • 2
    • 6
  • c

    cuddly-truck-99344

    04/27/2023, 7:49 AM
    Hey guys, while I enjoyed the yesterdays event on CI/CD best practices with Cypress Cloud, one of the topics relayed there was whats upcoming in the Cypress Cloud roadmap. That being said, one of the hosts mentioned that Cypress team is developing a
    built-in Teams integration in Cloud
    . Do we have an expected release for that feature, or is there a fine-grained public roadmap I can access? @many-airline-45402 @best-flower-17510 maybe you may have something in this regard. (Sorry for tagging)
  • b

    best-flower-17510

    04/27/2023, 3:28 PM
    Hey @cuddly-truck-99344, thanks for attending yesterday's event. I took your question directly to our product team and they informed me that this is scheduled for release this quarter. At the latest - it will be available in June (Maybe earlier 😀)
  • r

    rich-pharmacist-74804

    04/27/2023, 6:26 PM
    Greeting! I want to log in to the portal using just the bearer token. I can't visit the page. I did as following:
    Copy code
    const bearerToken = 'abcwert'
    cy.setCookie('Authorization', bearerToken)
    cy.visit('https://example.com/',{
          headers: {
            'Authorization': bearerToken,
          },
        })
    help needed. Thank you
  • m

    magnificent-lamp-44201

    04/28/2023, 9:47 AM
    Hi, guys! Just for curiosity: Since the past April Fools Day post made by @gray-kilobyte-89541 , I'm wondering if exists a solution or project that can make possible to use Playwright and Cypress together. It could be interesting to have that
  • i

    incalculable-rainbow-43330

    04/28/2023, 5:19 PM
    i missed the event can i know if we have any link for the video ?
  • b

    best-flower-17510

    04/28/2023, 5:45 PM
    We got you covered 😀

    https://youtu.be/sLsFkdend-Iâ–¾

  • a

    aloof-psychiatrist-45078

    05/03/2023, 1:49 AM
    Hello everyone, i have a installation issue which i detailed in here https://discord.com/channels/755913899261296641/1102808467837816842 Not sure what went wrong, but the Jenkins CI seems not waiting for the Cypress binary to finish installation
  • c

    colossal-table-38461

    05/03/2023, 6:16 AM
    Hello All, is their any mechanism to execute the Cypress Automation Scripts Parallelly on Local System???
  • m

    many-airline-45402

    05/03/2023, 6:27 AM
    Hi @colossal-table-38461 The guides on https://docs.cypress.io/guides/guides/parallelization only discuss this in a CI environment. GitHub does however offer self-hosted runners https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners which can be local.
  • w

    white-appointment-55436

    05/03/2023, 8:05 AM
    #help needed. I am trying to use cypress/factory as my base image to build out our custom gitlab CI runner image but with NODE_VERSION=20.0.0. However, it seems specifying this version causes/requires
    openssl
    to be installed and that triggers an interactive
    dpkg
    prompt. I would like to overwrite and provide this
    apt-get
    option of
    --option=Dpkg::Options::=--force-confdef
    to default interactive answer to accept
    openssl
    install so that node-version 20.0.0 can be installed. Any recommendation how I can update the base dockerfile for
    cypress/factory
    at https://hub.docker.com/r/cypress/factory ?
  • g

    gray-kilobyte-89541

    05/03/2023, 10:50 AM
    See cypress-split plug-in but you still need multiple test runner machines or containers on your ci
  • f

    fierce-vr-27506

    05/03/2023, 9:44 PM
    Hi I am trying to find the solution for my team where they need to fetch data from api and then they need to loop through this data to verify ui. Because of data hoisting forEach and api call happening at the same time and unable to wait before for loop starts. I have written a code snippet to explain above problem
    Copy code
    let data = [
      {
        car: 'BMW',
        usecases: [{usecaseName: 'oil change'}],
      },
      {
        car: 'Toyota',
        usecases: [{usecaseName: 'tyre change'}],
      },
    ];
    before(() => {
      // Assume below data are being fetched via api and updating existing data set declared above
      data = [
        {
          car: 'Honda',
          usecases: [{usecaseName: 'detailing'}],
        },
      ];
    });
    
    describe(`All test`, {tags: '@testConcept'}, () => {
      data.forEach((el) => {
        describe(`EX 1:`, () => {
          it(`Test Track :  ${JSON.stringify(el.car)}`, () => {
            cy.log(el.car); // expected Data Center Compute
          });
    
          el.usecases.forEach((el2) => {
            it(`Test case :  ${JSON.stringify(el2.usecaseName)}`, () => {
              cy.log(el2.usecaseName); // expected Simplified Operations
            });
          });
        });
      });
    
      describe(`EX 2:`, () => {
        data.forEach((el) => {
          it(`Test ===== :`, () => {
            cy.log(el); // expected Data Center Compute
          });
        });
      });
    
      describe(`EX 3:`, () => {
        it(`Test ===== :`, () => {
          cy.log(data); // expected Data Center Compute
        });
      });
    });
    In above example data is always printed from what i have declared at the top and not inside before loop. do any of you have ever need to do it and how did you solve it?
  • h

    handsome-lion-1748

    05/04/2023, 8:30 AM
    Hi, I have a question, I have tests writing with cucumber and cypress 10, and I see latest cypress is now 12, so should I migrate to 12? and is the cucumber preprocessor working as well with 12?
  • i

    incalculable-rainbow-43330

    05/08/2023, 2:39 PM
    A Question to team as a cypress developers who work on automating are you till considered as a Automation QC and How you are working with your teams , i mean is it along with team as member or Trying to work directly with PO to get more information and based on that develop test scripts 🙂
  • a

    adorable-smartphone-87280

    05/08/2023, 3:42 PM
    On my team, the entire QA is one group. We all do manual and automation work combined.
  • a

    adorable-smartphone-87280

    05/09/2023, 5:00 PM
    What does
    headless
    really mean? Test runs in CI are supposed to be headless, right? So, how do they generate screenshots and video? Does "headless" simply mean "we didn't send this output to a monitor"? I assumed that it meant "we didn't even require the GPU to render the DOM" but that clearly isn't true if we have media artifacts. (Jerry Seinfeld voice) What's the deal with headless mode?
1...123124125126127Latest