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

    late-house-1562

    06/14/2022, 11:25 PM
    The Cypress docs seem to say
    sinon
    is automatically included so I'm guessing not. Just can't figure out why the TypeError get generatored from
    winston
    when this doesn't happen with
    cy.stub
    isn't included.
  • h

    hallowed-mouse-50470

    06/15/2022, 5:31 AM
    Is it possible to have distributed execution on multiple docker containers and have a collective execution report on Cypress dashboard Ideas and help is greatly appreciated
  • g

    gray-kilobyte-89541

    06/15/2022, 10:29 AM
    easy, just need to use a common
    --ci-buid-id
    when running the tests https://on.cypress.io/parallelization
  • l

    late-house-1562

    06/15/2022, 12:36 PM
    I've not mde any progress in mocking some results from my api. I still get the
    TypeError
    described yesterday, and I don't understand why. I've got a simple stub:
    Copy code
    ts
        beforeEach(() => cy.stub(geocodesService, "geocodeUsageById")
          .resolves({
            ok: true,
            err: false,
            val: {
              requests: 3000
            }
          })
        )
    But regardless, it seems any time I include
    cy.stub
    or
    cy.spy
    in my spec file, I get the error.
  • a

    acoustic-doctor-39144

    06/15/2022, 12:53 PM
    Copy code
    /// <reference types="cypress" />
    
    context('Actions', () => {
    
      let sidata, sudata
    
        beforeEach(() => {
    
          cy.fixture('signupdata').then(function(sdata) {
            sidata=sdata
          })
    
          cy.fixture('signindata').then(function(sdata) {
            sudata=sdata
          })
    
        })
    
      before(() => {
        cy.visit('link')
      })
    
      it('sigin', () => {
        cy.go('forward')  
        cy.get('#userName-email').type(sudata.PaUsername)
        cy.get('#signupSubmitId').click()
        cy.wait(40000)
        cy.get('#signupSubmitId').click()  
      })
    
      it('sigup - must check', () => {
        cy.get('#emailID').should('be.disabled')
        cy.get('input[type=email]').should('contain.value',sudata.PaUsername)
      })
    
      it('sigup', () => {
          cy.get('#firstName').clear().type('Madhavan')
          cy.get('#lastName').clear().type('Prabakaran')
          cy.get('#userGender').clear().select('Male')
          cy.get('#userdob').clear().type('1999-06-19')
          cy.get('#contactCountryCode').clear().select('+91(IN)')
          cy.get('#contactMobileNumber').clear().type(sidata.PaMobile)
          cy.get('#optin-email').check()
          cy.get('#optin-mobile').check()
          cy.get('#signupSubmitId')
      })
    
    })
  • a

    acoustic-doctor-39144

    06/15/2022, 12:55 PM
    Why didn't next It block of sign-in it block failed, after sign-in page it should navigate to signup page. But while executiing signup IT block. It start from sign-in page.
  • a

    acoustic-doctor-39144

    06/15/2022, 12:55 PM
    Please help me guys
  • p

    purple-flower-79622

    06/15/2022, 1:29 PM
    asdad
  • p

    purple-flower-79622

    06/15/2022, 1:30 PM
    Hi
  • p

    purple-flower-79622

    06/15/2022, 1:30 PM
    Can we use cypress to test on mobile browsers?
  • h

    hallowed-mouse-50470

    06/15/2022, 5:08 PM
    If you want to test you application in mobile browser dimensions you can do it by altering cy.viewport function with the required height and width of browser Even with appium a mobile testing tool with respect to a browser this is what you will be able to do but it give extra support to test native apps as well
  • m

    modern-librarian-14184

    06/15/2022, 7:02 PM
    Sup everyone! Glad to see Cypress has a discord server. 🙂
  • l

    lemon-oyster-64925

    06/15/2022, 7:10 PM
    Thanks for joining! You had some great responses and questions in our webinar today! 😃
  • m

    modern-librarian-14184

    06/15/2022, 7:11 PM
    Thank you 🙂 it was a very helpful and informative webinar!
  • l

    late-house-1562

    06/15/2022, 8:03 PM
    I'm trying to migrate to v10, creating a
    cypress.config.ts
    in place of the plugins file. I'm having trouble getting
    tasks
    right:
    Copy code
    ts
    export default defineConfig({
      // setupNodeEvents can be defined in either
      // the e2e or component configuration
      e2e: {
        setupNodeEvents(on) {
          // bind to the event we care about
          on("task", (on) => {
            async function resetDatabase() {
              // function code
            }
            async function seedDatabase() {
            // function code
          })
        },
        baseUrl: "http://localhost:5000",
      }
    })
    yields:
    Copy code
    InvalidEventHandlerError: The handler for the event `task` must be an object
    But when I try to change it to an object, that doesn't work either.
  • l

    late-house-1562

    06/15/2022, 10:58 PM
    NVM, I got this working.
  • b

    breezy-flag-76429

    06/16/2022, 1:10 AM
    Hey, does anyone know if Smart Orchestration "Cancel test run when a test fails" only triggers after any test retries have been performed (and also all fail)? Would assume/hope so.
  • a

    adventurous-dream-20049

    06/16/2022, 2:13 AM
    That is correct. Test retries are performed first according to the specification in your config, followed by the cancellation of the test. As a note, failed tests are reported at the end of the spec running. So, if running in parallel, it is possible you will still see a few test results appear until specs that were already running are complete.
  • a

    adventurous-branch-4501

    06/16/2022, 2:19 AM
    Thanks, it works
  • b

    breezy-flag-76429

    06/16/2022, 2:30 AM
    Great thank you for clarifying@adventurous-dream-20049
  • l

    little-translator-68537

    06/16/2022, 3:28 AM
    Excuse me, I install cypress in WSL2 and XLaunch. I receive error "Cypress verification timed out." many times. I have tried to modify the "CYPRESS_VERIFY_TIMEOUT" from 30 seconds to 100 sec on verify.js. But no work. I have try to run "npx cypress verify", but same result. Moreover, I have tried this post, and no work. https://shouv.medium.com/how-to-run-cypress-on-wsl2-989b83795fb6 Dose any one meet same issue before? It takes me two days already....
  • a

    abundant-musician-88272

    06/16/2022, 6:17 AM
    try npx cypress open
  • c

    creamy-noon-1182

    06/16/2022, 7:36 AM
    Hey @little-translator-68537 👋, I have the same issue all the time 😉 Make sure that you have
    Xvfb
    server running on the same port that you have in
    $DISPLAY
    Xvfb :99 &
    export $DISPLAY=:99
    these two commands fixes the issue for me.
  • p

    purple-flower-79622

    06/16/2022, 8:17 AM
    I got this. And except this viewport, do we have any onther libraries supported, so that we can run these scripts on different mobile devices?
  • a

    average-garden-13651

    06/16/2022, 8:19 AM
    Hi guys, really hope someone here knows the solution. I am trying to reach elements inside a modal «popup», aka not js alert or regular popup. Cypress simply cant find it as soon as I am going inside the modal…
  • a

    adventurous-postman-3917

    06/16/2022, 8:47 AM
    Hey there, could you pls share a screenshot of that? (Better with elements hierarchy)
  • a

    average-garden-13651

    06/16/2022, 8:53 AM
    So, the main website is inside the form tag, and when you click a button inside here a modal pops out and the div below becomes active and is shown in the code
  • g

    gentle-accountant-4760

    06/16/2022, 9:00 AM
    Any good recommendation regarding tutorial on how to learn Cypress? Similar to Udemy?
  • a

    adventurous-postman-3917

    06/16/2022, 9:23 AM
    Your question is not clear enough. Did you mean that you can not find an element that is a descendant of the
    div.modal
    ? If yes, could you share with us your css selector and the hierarchy of that element?
  • a

    average-garden-13651

    06/16/2022, 9:27 AM
    I can find it, but cypress cant…
1...505152...127Latest