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

    melodic-easter-1976

    09/27/2022, 4:48 PM
    Trying to get cypress to run on github and it keeps erroring out because I have a git dependency - whereas locally it runs fine. On Cypress run when trying to download packages I'll get the error:
    remote: Repository not found.
    - the git dependency is from a private repo, but have had no issues with installs, so makes me guess that cypress can't install a remote git dependency? Any ideas?
  • h

    handsome-bear-70892

    09/27/2022, 5:07 PM
    looks like all the links to CI provider examplesin the docs are all 404s, just an fyi
  • f

    fancy-mechanic-10638

    09/27/2022, 6:52 PM
    I have an input field that pipes to an Angular pipe that then calls a service to accomplish runtime lookahead based on server output. When I type I can see the network call being made, but then when I wait for the response it times out saying it was never called. This is what I tried:
    Copy code
    typescript
    cy.intercept('get', '/employee/*', {fixture: 'employees'})
        .as('employees')
    
    cy.get('igx-drop-down-item').should('not.exist')
    cy.get('input').type('bob')
    
    cy.wait('@employees')
        .its('response.body')
        .then(....)
    I feel like I have a chicken and egg problem here.
  • f

    few-planet-19648

    09/27/2022, 8:04 PM
    Hi all, I need help to create global variable. Cypress logic is totally different. I need to assign a variable which I grabbed the value from DOM depend on scenario and I need to use it in different test blocks. Im new with cypress as well as TS and I couldn’t figure out it yet. Thanks for your helps
  • g

    gray-kilobyte-89541

    09/27/2022, 8:33 PM
    can you create a reproducible example one can run?
  • g

    gray-kilobyte-89541

    09/27/2022, 8:33 PM
    aliases are your friends
  • g

    gentle-byte-6745

    09/27/2022, 10:57 PM
    @here How can I use Cypress in IntelliJ? In VS Code, I know we use npm to install Cypress..
  • f

    fierce-student-18978

    09/28/2022, 12:25 AM
    Hey everyone, I originally started testing in my create-react-app using the E2E test set up. Now, I’m trying to add Component testing. Is it possible to have both of these in the same application? I’ve been running into a lot of problems trying to set up Component testing
  • m

    mysterious-motherboard-13344

    09/28/2022, 7:15 AM
    Does anyone know how can I run particular cypress test to execute at last in regression suite run?
  • s

    straight-jelly-78334

    09/28/2022, 7:17 AM

    https://www.youtube.com/watch?v=pA2C0q1mgnA▾

    m
    • 2
    • 1
  • a

    acceptable-hamburger-48790

    09/28/2022, 8:41 AM
    You need to have the licensed version of Intellij, as Cypress uses JS/TS. Intellij community edition doesnt support the JS/TS
  • c

    cuddly-cat-25924

    09/28/2022, 11:01 AM
    Hi everyone, Have you guys ever found issue about Cypress cannot connect with Firefox ? Does anyone know how to fix it?
  • w

    wide-evening-76256

    09/28/2022, 12:54 PM
    Good afternoon. the button I want to click on in my test appears only when the cursor is hovered over and this turned out to be an interesting task for me. What can I do about it?
  • m

    mysterious-belgium-25713

    09/28/2022, 1:41 PM
    There are different ways to stimulate a hover. Try this page solution: https://docs.cypress.io/api/commands/hover#Trigger or check the GitHub page with examples https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/testing-dom__hover-hidden-elements
  • p

    polite-salesclerk-28948

    09/28/2022, 1:47 PM
    has anyone used cy.session and has it worked in 10.6?
  • p

    proud-breakfast-29892

    09/28/2022, 2:03 PM
    has anyone used cy session and has it
  • p

    proud-breakfast-29892

    09/28/2022, 2:04 PM
    Hey. Can anyone please navigate to the following URL using cy.visit and tell me if their test crashes or not?
    https://rom.my.universe.cdp.gigya.com
  • m

    melodic-egg-83620

    09/28/2022, 2:45 PM
    How do you enable ES2020 syntax in Cypress tests and any files imported into a Cypress spec?
  • s

    stale-wire-41120

    09/28/2022, 3:29 PM
    I need help in attaching cypress to testrail tool please help me out in this
  • m

    mysterious-belgium-25713

    09/28/2022, 3:34 PM
    Did you read the blog Gleb created on using testrail. https://glebbahmutov.com/blog/cypress-and-testrail/
  • g

    gray-kilobyte-89541

    09/28/2022, 4:33 PM
    That is right - searching https://cypress.tips/search is the first step to getting an answer 😉
  • m

    mysterious-belgium-25713

    09/28/2022, 4:43 PM
    I will make a short url hyfgb. Have you found gleb's blog. And then just redirect everyone to it.
  • l

    little-monkey-88843

    09/28/2022, 5:51 PM
    Hey all! I've got an e2e test that I need to mock an API call. I'm using cy.intercept. I've got an .xlsx file in my Fixtures, and I need to take that file and return it from the intercept as an arraybuffer. Any tips? I tried creating a field in the response body and feeding the file into new ArrayBufferr. Any other tips on how to approach this?
  • g

    gray-kilobyte-89541

    09/28/2022, 6:34 PM
    you should inspect the network request that the application sends and look at the request and response headers (media types, encoding etc), and then mock the same way. I wish there was an example of the site, then we could play with it
  • l

    little-monkey-88843

    09/28/2022, 6:35 PM
    This makes sense, thank you! I was so focused on the file itself I didn't think about the headers. If this doesn't clear it up for me, I'll put together a codepen. Thank you!
  • f

    fancy-mechanic-10638

    09/28/2022, 6:52 PM
    In my component test I'm trying to use a custom assertion, so I put this into commands.ts:
    Copy code
    typescript
    chai.use(chaiHelper => {
        chaiHelper.Assertion.addChainableMethod('have.trimmed.text', function (expected: string) {
    but when my chain calls
    should('have.trimmed.text', '...')
    I'm getting an error saying that the trimmed chainer was not found. I also put this into /cypress/index.d.ts:
    Copy code
    typescript
    declare namespace Cypress {
        interface Chainer<Subject> {
            (chainer: 'have.trimmed.text', expected?: string): Chainable<Subject>
        }
    }
  • m

    melodic-egg-83620

    09/28/2022, 7:07 PM
    How do you tell Cypress to use
    babel-preset-env
    for the webpack compilation?
  • m

    mysterious-belgium-25713

    09/28/2022, 7:17 PM
    Point it to a config file and in the config file set the babel-preset-env
    Copy code
    webpackOptions: require('../../webpack.config'),
    Copy code
    js
    {
      mode: 'development',
      module: {
        rules: [
          {
            test: /\.jsx?$/,
            exclude: [/node_modules/],
            use: [{
              loader: 'babel-loader',
              options: {
                presets: ['@babel/preset-env'],
              },
            }],
          },
        ],
      },
    }
  • g

    gray-kilobyte-89541

    09/28/2022, 7:33 PM
    try using
    addMethod
    instead of add chainable method
  • f

    fancy-mechanic-10638

    09/28/2022, 7:37 PM
    Didn't make a difference. If I put
    haveTrimmedText
    instead of
    have.trimmed.text
    then it works.
1...156157158...252Latest