https://cypress.io logo
Join Discord
Powered by
# help
  • f

    flat-dentist-98143

    10/06/2022, 2:12 PM
    and in VS it shows me this error
  • a

    aloof-laptop-78265

    10/06/2022, 3:24 PM
    Can someone tell me why I can't access my dashboard? Was fine a couple hours ago.
  • m

    microscopic-advantage-2187

    10/06/2022, 4:11 PM
    Cypress Dropdown elements populating
    • 1
    • 3
  • f

    freezing-wall-7568

    10/06/2022, 4:53 PM
    afterEach hook within .ts file under support/stepDefinitions is running after each scenario in all .feature files instead of matching one, given: first.feature and second.feature exists, and inside stepDefinition file first.ts afterEach hook exists, that hook runs also for second.feature I dont think it should, any thoughts @freezing-piano-2792
  • u

    user

    10/06/2022, 5:30 PM
    hi, all! Cypress provides onboarding for teams , does anyone knows how to set it up ?
  • f

    freezing-piano-2792

    10/06/2022, 5:50 PM
    @freezing-wall-7568 how does
    stepDefinitions
    look like?
  • f

    freezing-piano-2792

    10/06/2022, 5:51 PM
    (the configuration value)
  • f

    fresh-nail-30646

    10/06/2022, 6:03 PM
    Hey all, I just upgraded to
    10.9.0
    but now I'm getting a permission error when trying to run
    cypress open
    . The permission error is on
    ~/Library/Caches/Cypress/10.9.0/binary_state.json
    . Anybody run into this and have a solution?
  • f

    freezing-piano-2792

    10/06/2022, 6:18 PM
    Well there you have it
  • f

    freezing-piano-2792

    10/06/2022, 6:19 PM
    You're assuming it wouldn't match, but that pattern means that every feature file will match with every file containing step definitions
  • f

    freezing-wall-7568

    10/06/2022, 6:20 PM
    what would be the fix? **/[filename].ts ?
  • f

    freezing-piano-2792

    10/06/2022, 6:23 PM
    I recommend reading the docs: https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/step-definitions.md
  • m

    mysterious-kitchen-59722

    10/06/2022, 7:13 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?
  • p

    prehistoric-horse-97860

    10/06/2022, 7:29 PM
    Hello all, has anyone installed Cypress on a FIPS compliant server?
  • f

    flaky-raincoat-53097

    10/06/2022, 8:49 PM
    Hi all! I'm trying to test this site: https://www.businessinsider.com/ikea-nyc-store-planning-studio-tour-2019-4 and I want to test this facebook button.
  • f

    flaky-raincoat-53097

    10/06/2022, 8:50 PM
    the thing is that it opens a pop up window.. like this.
  • f

    flaky-raincoat-53097

    10/06/2022, 8:51 PM
    and I just want to assert that effectively I reached the facebook page. I was thinking to assert the urls but I just don't know how to do it because I can't switch to a child window.
  • f

    flaky-raincoat-53097

    10/06/2022, 8:52 PM
    can somebody help me with some ideas to test this?
  • f

    flaky-raincoat-53097

    10/06/2022, 8:52 PM
    Thanks
  • g

    gifted-umbrella-24016

    10/06/2022, 9:07 PM
    Hey guys, I'm looking for some help with stubbing
    matchMedia
    in a cypress component test. I have tried doing the following in a beforeEach, but it doesn't work:
    Copy code
    cy.stub(window, 'matchMedia').withArgs('(prefers-reduced-motion: reduce)').returns({
        matches: true,
      })
    Does anyone have any ideas on how I can fix this? Really need the ability to test this functionality in our component tests
    • 1
    • 2
  • s

    stale-optician-85950

    10/06/2022, 9:16 PM
    Don't test it via the UI as you are only concerned that the link correctly points to Facebook, use
    cy.request
    example:
    Copy code
    describe('Social Links', () => {
      it('Validates Facebook link', () => {
        cy.visit('https://www.businessinsider.com/ikea-nyc-store-planning-studio-tour-2019-4');
        cy.get('[aria-label="Share This Post"] [aria-label="Click to visit us on Facebook"]')
          .first()
          .invoke('attr', 'data-href')
          .then($el => {
            cy.log('$el', $el);
            cy.request($el).then(resp => {
              expect(resp.status).to.eq(200);
            });
          });
      });
    });
    Remember that you are not testing 3rd party websites, you are only concerned about your client website. Also it's not necessary to post the same question in multiple channels.
  • f

    flaky-raincoat-53097

    10/06/2022, 9:58 PM
    Wow! great sir!! @chilly-secretary-16093
  • f

    flaky-raincoat-53097

    10/06/2022, 9:58 PM
    excellent approach I never would have imagined
  • f

    flaky-raincoat-53097

    10/06/2022, 9:58 PM
    thanks a lot!
  • b

    bored-school-78265

    10/07/2022, 12:31 AM
    Any idea how to temporarily change the viewport size? I tried something like:
    Copy code
    export function percyResponsiveSnapshot(name?: string | string[], options?: SnapshotOptions) {
      const names = nameToNames(name)
      getWidths(options).forEach((width) => {
        cy.window().then((window) => {
          const originalWidth = window.visualViewport.width
          const height = window.visualViewport.height
          debugger
          cy.viewport(width, height)
          percyNamedSnapshot([...names, width.toFixed()], {...options, widths: [width]})
          cy.viewport(originalWidth, height)
        })
      })
    }
    but the problem is that when run in the GUI, the
    visualViewport
    is the size of the iframe excluding the padding. Calling
    cy.viewport
    seems to remove the 15px of padding. So first time around
    originalWidth
    is 985px, second time around it is 970px, third 955px and so on.
  • b

    bored-school-78265

    10/07/2022, 12:43 AM
    Ohhh it's not the GUI padding, it is the scroll bar. Need to use
    window.innerWidth
    instead.
  • s

    shy-winter-53144

    10/07/2022, 3:16 AM
    Hi, I am trying to launch web page which is developed using salesforce lighting web component using cypress. But the page is loaded when triggered from script. Locally page is loading fine. When tried with other automation tools, page is loading perfectly fine. Can i pls get any help here. Thanks
  • a

    abundant-lifeguard-9043

    10/07/2022, 8:36 AM
    Hi there... I'm trying some experiments with the new webkit runner, and currently I'm having an issue where it doesn't seem able to interact with an iframe... (same test runs fine on chrome) has anyone tried it and has something to share on doing that kind of thing? thanks
  • n

    narrow-minister-71622

    10/07/2022, 8:54 AM
    Is there any way we can automate desktop applications using cypress .. Any Plug in or tool available ?
  • s

    stale-optician-85950

    10/07/2022, 9:01 AM
    Not a chance. You would need a tool like https://www.ranorex.com/ to achieve that seamlessly.e
1...165166167...252Latest