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

    thankful-needle-72552

    10/05/2022, 3:18 PM
    Hi guys, hope fide you well! I have to test a feature that is based on closing the browser and re-open the browser and reach the previous url, but cypress it self is builded on browser, do you know if there i way on cypress to test this flow?
  • b

    breezy-room-97976

    10/05/2022, 3:39 PM
    hello Cypress Community, is it possible to change the source of cypress-msteams-reporter? What is mean is, Cypress can send the Allure Report to MS Teams, but is it possible to use report from cypress-mochawesome-reporter and send it to MS Teams?
  • g

    gray-kilobyte-89541

    10/05/2022, 4:43 PM
    why do you need to close the browser?
  • l

    limited-room-30929

    10/05/2022, 5:41 PM
    is there a way for debugging vendor.js in cypress 10?
  • l

    limited-room-30929

    10/05/2022, 5:42 PM
    preferable short after the devserver/customdevserver started and before tests are tried to execute
  • m

    mysterious-belgium-25713

    10/05/2022, 5:47 PM
    I don't think you can change the source. Because the plugin is written to use allure. If you want to change it i think you need to fork the plugin and make it work with another reporter
  • l

    limited-room-30929

    10/05/2022, 5:59 PM
    is there maybe a way to use cypress without the binary for debugging?
  • l

    limited-room-30929

    10/05/2022, 6:32 PM
    well running
    cypress run
    I need to get into that one 🙂
  • l

    limited-room-30929

    10/05/2022, 6:32 PM
    so if there is something like
    node ./node_modules/@cypress/src/index.js
    or something that may help
  • l

    limited-room-30929

    10/05/2022, 6:46 PM
    I want to get to the roots of this error
  • l

    limited-room-30929

    10/05/2022, 6:47 PM
    tip hat to webpack hihi
  • l

    limited-room-30929

    10/05/2022, 6:50 PM
    btw, why do you still use bluebird?
  • l

    limited-room-30929

    10/05/2022, 6:56 PM
    ok so I have the following issue as it seems
  • l

    limited-room-30929

    10/05/2022, 6:56 PM
    so it seems that modules get prefixed?
  • l

    limited-room-30929

    10/05/2022, 6:57 PM
    that messes up the access too it
  • l

    limited-room-30929

    10/05/2022, 7:06 PM
    or the source maps are mocking me
  • t

    tall-microphone-35955

    10/06/2022, 7:50 AM
    hi team, I have a dropdown on clicking that it will open a new tab thats open outside the cypress ui so am not able to test it it showing that cant find the element how to fix this?
  • m

    mysterious-belgium-25713

    10/06/2022, 8:07 AM
    So if you select the dropdown value, does this have an target attribute if yes then you can remove that attribute so that it will not open a new tab. cy.get('#users').invoke('removeAttr', 'target').click()
  • k

    kind-flag-4855

    10/06/2022, 8:37 AM
    Hello Everyone - Can you please recommend any repos for Cypress-Jenkins Integration? I reviewed the documentation in Cypress.io which only provides example files and not a detailed documentation for Jenkins like other CI providers?
  • t

    tall-microphone-35955

    10/06/2022, 8:42 AM
    tried it but its not working
  • b

    breezy-room-97976

    10/06/2022, 8:44 AM
    thank you for answer 🙂
  • k

    kind-flag-4855

    10/06/2022, 9:07 AM
    The toggle button in the app appends class names based on selection. How do I assert the class name includes in cypress or chai? Tried expect().to.have.attr() and this did not work? Thanks in advance
  • m

    mysterious-belgium-25713

    10/06/2022, 9:18 AM
    Asserthing class names you can do with
    Copy code
    js
    cy.get("").should('have.class', 'form-horizontal')
  • m

    mysterious-belgium-25713

    10/06/2022, 9:19 AM
    https://docs.cypress.io/api/commands/should#Value https://docs.cypress.io/api/commands/should#Function
  • f

    fierce-beach-68131

    10/06/2022, 9:33 AM
    This is maybe a stupid question but I should ask anyway. When I click on export button in our application, it redirect me to the another tab, and after download is done, closing itself.. by the way I already checked if we've target attribute but there is no target attribute in the DOM. If I do this in cypress, opening a new cypress automatically after I click on Export button and then cypress shut down itself. And my terminal displayed this; But if I check the "downloads" folder in Cypress, I can see that the file has been downloaded. So, I do not know what to do in this case. Any suggestion?
  • b

    bumpy-nest-69551

    10/06/2022, 9:51 AM
    Hi all, Running into a mysterious issue with Cypress for a while now. When setting up and configuring a project, first all is well. The project works as expected and I can run my specs etc. Then, if I change my cypress.config.ts file, it will throw an error saying that the cypress.config.ts module wasn't found upon opening cypress (both npx cypress open, npx cypress run, or just cypress open and finding the project). The file is definitely at the path where it says it can't find it. The error will persist across the project, across branches, etc. even if I change back the configFile to it's original state. Some solutions I've tried: * npm install, npm update * clear cypress cache and reinstall * uninstall node js via homebrew package manager and install node directly instead via curl command * reinstall typescript * removing devDependencies This is the second time I get the error, the first time it was fixed by completely copying the project over to another folder, but later it popped up again. Copying each time doesn't seem like a durable solution. The error: ----- Your configFile is invalid: /Users//Dropbox/Mac/Documents//Testing/cypress/Cypress2/project/cypress.config.ts It threw an error when required, check the stack trace below: ../../../../../../../../Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/node_modules/tsconfig-paths/lib/register.js:75:40 73 | } 74 | // tslint:disable-next-line:no-invalid-this > 75 | return originalResolveFilename.apply(this, arguments); | ^ 76 | }; 77 | return function () { 78 | // Return node's module loading to original state. 79 | Module._resolveFilename = originalResolveFilename; Error: Cannot find module 'file:///Users//Dropbox/Mac/Documents//Testing/cypress/Cypress2/project/cypress.config.ts' ---- Any ideas are appreciated! Thanks!
  • n

    narrow-artist-87113

    10/06/2022, 10:16 AM
    Please go through the question: https://stackoverflow.com/questions/73972132/not-able-to-access-the-element-inside-the-dom-using-cypress
  • n

    narrow-artist-87113

    10/06/2022, 10:16 AM
    And please help!
  • m

    mysterious-belgium-25713

    10/06/2022, 10:55 AM
    Hi i'm looking at your screenshot but it seems that your test is failing on the step. cy.contains('Connect with github').click() so all code below that will not be executed.
    Copy code
    js
      cy.contains('Connect with github').click()
      cy.origin('https://github.com', ()=>{
        cy.get('input[name="login"]').type('my-email')
        cy.get('input[name="password"]').type('my-password')
        cy.get('[type="submit"]').click()
        cy.get('[href="/settings/installations/29576211"]').click()
        cy.contains('Only select repositories').click()
        cy.contains('All repositories').click()
        cy.get('.js-integrations-install-form-submit.btn-primary.btn.float-left.mr-2').click()
      })
     //Comes out of github.com back to console.internetcomputerservices.com
     //(Expected) cypress will identify the placeholder and type "intro-2"
     // but this doesn't happen, cypress doesn't identify any element inside the DOM
      cy.get('input[placeholder="Search…"]').type('intro-2')
    It seems that you are already logged into github so your not logging into github.
  • n

    narrow-artist-87113

    10/06/2022, 11:04 AM
    The code is for the case when we are not logged in with github, cy.origin helps us loggin
1...163164165...252Latest