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

    best-flower-17510

    01/09/2023, 3:08 PM
    Great question, I add it to our #1049757359125307482 channel. Feel free to leave your thoughts there as well 😀
  • b

    bored-van-76450

    01/09/2023, 8:30 PM
    Hello here, I need help with some challenges. This challenge firstly, is with handling a new browser tab as cypress doesn’t support it. My research found a method which affects html elements with attribute target = _blank. But the website of my am testing does not use this on the link/site that am working on. Secondly, is loading a new extension unto the system. I found a way to load it unto cypress but I am having a challenge loading up the cypress dashboard. Thirdly, is to make cypress interact with the extension. My research only let me see way to load the extension unto cypress, not to have cypress use the extension. Can anyone here assist with these challenges please?
  • p

    powerful-orange-86819

    01/10/2023, 8:04 AM
    Copy code
    js
    Cypress.Commands.add("wrapWindowOpen", (target = undefined) => {
      cy.window().then((win) => {
        cy.stub(win, "open")
          .callsFake((url, target) => {
            if (target === undefined) {
              expect(target).to.be.undefined;
            } else {
              expect(target).to.eq("_blank");
            }
            return win.open.wrappedMethod.call(win, url, "_self");
          })
          .as("open");
      });
    });
    This is my custom command that I add in the beforeEach() and then just assert it with
    Copy code
    cy.get("@open").should("have.been.calledOnce");
    Or you can edit the html code not to open it in a new tab
  • i

    incalculable-rainbow-43330

    01/10/2023, 1:39 PM
    Hi All is there any plugin which tries to identify my piece of code which is taking more time in overall no of lines in spec so that we can focus on refactoring it? dont you guys think having this kind of thing will help us write performance improving specs ?
  • g

    gray-kilobyte-89541

    01/10/2023, 3:12 PM
    https://glebbahmutov.com/blog/cypress-timings/
  • l

    late-dinner-1440

    01/10/2023, 4:41 PM
    Hi freinds, I checkout a new GitLab for the Cypress cloud. When I use cypress/base:10 i have error like [410:0110/163540.997746:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. /root/.cache/Cypress/12.3.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:40 invoke = (eventId, args = []) => { ^ SyntaxError: Unexpected token = and when I use cypress/included:9.6.1 everything is fine. The first one is in the docs. Any ideas?
  • g

    gray-kilobyte-89541

    01/10/2023, 5:28 PM
    the base has Node v10, that's waaaaay too old
  • l

    late-dinner-1440

    01/10/2023, 5:36 PM
    So it is linked in the documentation. What is right, then I can do my first PR to documentation 😉
  • g

    gray-kilobyte-89541

    01/10/2023, 6:26 PM
    I would use Node 16 or even 18 now
  • f

    few-oyster-82478

    01/10/2023, 9:15 PM
    a quick question (I think), about cypress tests results number for billing, in this image, is the
    test results
    above what counts to the general
    test results
    number in billing? (in this example there are four specs in total, and it says it has six
    test results
    ), and related to that, is that independent on the number of machines you use for paralelization? (or the more machines you use, the more the cost increases?)
  • p

    powerful-orange-86819

    01/11/2023, 4:05 AM
    Anyone else experiimenting with Chat GPT to create cypress commands/tests or any custom functions? I'm getting some nice results for simple questions
  • l

    late-planet-4481

    01/11/2023, 4:30 AM
    Just don't ask it anything niche, haha. It will start inventing Cypress commands.
  • r

    refined-xylophone-96352

    01/11/2023, 4:38 AM
    Hello Everyone, I am trying to build a dockerfile for my Cypress Test execution. I am using Cypress 12.3.0 (Preferably any version above 10). When I run the test, however, it exits immediately with the error: Test Runner unexpectedly exited via a exit event with signal SIGSEGV I went through similar issues in your github/issues page. They were all redirected to https://github.com/cypress-io/cypress/issues/18464. Accordingly, I tried out a few things: - Tried running the test with chrome browser using cypress run --browser chrome - Tried removing video : false in the config file (Suggested by other users. Seemed to work for them) But I am still facing the same issue. I believe that in my case, the Test runner exits even before it searches for the config file (because I removed the config file but didn't get the Could not find a Cypress configuration file error. Can anyone please help me with this? Thanks in advance!
  • h

    hallowed-mouse-50470

    01/11/2023, 6:47 AM
    Hi Guy, we are experiencing 20 -30 % of flakiness in test cases As we see this is due to the usage of API response before validating any new verification point is there a better way of handling explicit waits or implicit waits apart from the API responses ALL the ideas and suggestions are highly appreciated.
  • b

    bored-van-76450

    01/11/2023, 8:26 AM
    Thank you very much. This response has assisted with the issue of new tab opening. I still have the issues with: 1. loading of new extension into cypress dashboard 2. Making cypress interact with the extension. Thank you.
  • g

    gray-kilobyte-89541

    01/11/2023, 11:53 AM
    if you want to learn how to work with network in Cypress tests, I have a paid course https://cypress.tips/courses/network-testing
  • b

    boundless-pager-73753

    01/11/2023, 3:23 PM
    Hi guys! Anyway to disable overflow during test? I have a window with selected settings and need to iterate through each to select options, but some of them are covered by overflow and cypress treats them as ‘hidden’ and they are being omitted. Thank you!
  • g

    gray-kilobyte-89541

    01/11/2023, 4:16 PM
    how would you disable overflow? like render your page differently?
  • a

    adorable-smartphone-87280

    01/11/2023, 4:20 PM
    I think @boundless-pager-73753 might be asking if there is a way to run checks against the entire page, ignoring element visibility (???). This sounds like a scroll event needs to be introduced half-way through the assertions to bring those other items into view, but perhaps I'm confused about the question.
  • b

    boundless-pager-73753

    01/11/2023, 4:22 PM
    Idk, when I uncheck overflow property manually I can see hidden elements I need to interact with. For example, I have 6 ‘select’ elements I need to access, but that window can show only 3-4, the rest is covered. I’m trying to scroll down after each iteration, but it does not help
  • b

    boundless-pager-73753

    01/11/2023, 4:34 PM
    Copy code
    assignValuesToSelectedSettings() {
            cy.get('[name="selected-settings"]').find('select').each((select) => {
                if (select.is(':visible')) {
                    cy.wrap(select).scrollIntoView({ ensureScrollable: false })
                    cy.wrap(select).find('option').filter(':enabled').its('length').then((optionsLength) => {
                        const random_option = Math.floor(Math.random() * optionsLength);
                        cy.wrap(select).select(random_option).scrollTo(0, 200, { ensureScrollable: false })
                    })
                } else { }
    
            })
    
        }
  • r

    refined-xylophone-96352

    01/12/2023, 3:49 AM
    Any ideas, team?
  • f

    freezing-piano-2792

    01/12/2023, 12:39 PM
    Are there any plans to handle
    relatedTarget
    per spec? Ref https://github.com/cypress-io/cypress/blob/v10.10.0/packages/driver/src/cy/focused.ts#L8
  • m

    many-engine-97646

    01/12/2023, 4:24 PM
    Hello everyone. I'm trying to set up Cucumber preprocessor in my project. I've made an "$ npm install @freezing-piano-2792/cypress-cucumber-preprocessor" . How can I create a Gherkin file now? Should I just add a file like "Homepage.feature" to "e2e" folder and write Scenarios there? Do I need to add { "stepDefinitions": [ "cypress/e2e/[filepath]/**/*.{js,ts}", "cypress/e2e/[filepath].{js,ts}", "cypress/support/step_definitions/**/*.{js,ts}", ] } in package.json file? Could somebody help me with that, please. I didn't fully understand the steps from this article. https://github.com/badeball/cypress-cucumber-preprocessor/blob/8549f80fb209233eb5c98d918267f4d86bc8ca75/docs/step-definitions.md
  • f

    freezing-piano-2792

    01/12/2023, 4:46 PM
    Use any of the examples shown here: https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples
  • b

    bored-van-76450

    01/14/2023, 5:39 AM
    I want to show my gratitude to everyone on this platform and to @powerful-orange-86819 in particular. I had a challenge, posted it here and @powerful-orange-86819 provided a solution that worked perfectly okay. Before reporting the issue, I have contacted a number of contacts to no avail. Thank you @powerful-orange-86819 thanks to every one on this platform. We are doing a great job to impact humanity and provide solutions.., please keep it up. Cheers to all.
  • b

    busy-parrot-92984

    01/15/2023, 11:13 AM
    Hello , does any1 know what is VS code theme on offical Cypress video tutorials?
  • b

    bored-van-76450

    01/15/2023, 8:11 PM
    Hello here, I am having a challenge making cypress to interact with an extension. I need help with this please. The extension have been successfully loaded, that is resolved thank you here. But I now need cypress to interact with extension. Any help will be really appreciated please. Thank you.
  • r

    refined-breakfast-53252

    01/16/2023, 12:47 PM
    Hi Guys Can someone show me examples os tests with graphs in cypress?
  • m

    modern-dawn-86006

    01/16/2023, 7:47 PM
    Hi, does anyone need a person to write cypress e2e tests with them? I am willing to automate the web application with them for free as long as I get to learn from you. I want to learn your approach of automating the task, happy path and stuff like that. I want to work on a live project, sadly my office is not using any automation tool. I personally use page object models to write clean tests, anyone can understand my tests easily. 😏
1...106107108...127Latest