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

    busy-vegetable-18177

    06/03/2022, 1:54 PM
    do you have a git snapshot from before you initialied the config? try rolling back to it and trying again
  • n

    nutritious-crayon-33896

    06/03/2022, 2:16 PM
    I have tried it in 2 fresh CRA apps from doing the cypress install, opening it letting it auto generate some files then clicking to initialize and it crashes everytime
  • n

    nutritious-crayon-33896

    06/03/2022, 2:17 PM
    Thinking it might be being blocked by my corporate proxy in powershell but it seems to be able to access the file through the browser
    w
    • 2
    • 3
  • n

    nutritious-crayon-33896

    06/03/2022, 2:18 PM
    Wondering if anyone else has had issues working in a corporate environment
  • p

    powerful-chef-53496

    06/03/2022, 6:11 PM
    Is it possible to have cy-open run all integration files but have a separate folder for cy-run that is not within the integration folder? I tried --spec to find the new folder but it fails if it's outside of the integration folder.
  • w

    wonderful-match-15836

    06/03/2022, 7:07 PM
    Thinking it might be being blocked by my
  • p

    purple-kilobyte-85592

    06/04/2022, 9:20 AM
    Hi! is lazy load of bootstrap able to test in cypress? For example PLP'Ss of e-commerce websites
  • r

    ripe-action-59156

    06/04/2022, 10:22 AM
    Hey! I'm trying to implement cypress for our app, have come across a couple issues but have been able to take care of most of them. However, this one has been bugging me for a while and I haven't been able to fix it. When I do a
    .visit("/")
    for our website (live build is: https://furo-delta.vercel.app/furo), the command never finishes loading after which the test fails (20s). See screenshot #1 - the three requests never finish See screenshot #2 - the fail message Using
    export CYPRESS_SKIP_RESOURCES_WAIT=true
    takes care of it, but I expect that some undefined behavior could happen somewhere down the road, so I'd prefer not to. To reproduce:
    Copy code
    git clone https://github.com/sushiswap/sushiswap.git
    cd sushiswap
    git switch features/furo-synpress
    pnpm install
    cd apps/furo
    export SECRET_WORDS="test test test test test test test test test test test junk"
    pnpm synpress run -cf cypress/cypress.config.ts
    Some notes: - I'm using synpress, which is a cypress wrapper/plugin which adds Metamask support. It's cypress version is
    9.5.3
    -I've set
    cypress.config.ts
    to point to the live deployment so that you don't need to build to reproduce, exact same issue happens with a local build though
  • b

    busy-vegetable-18177

    06/04/2022, 11:50 AM
    I made a custom assertion that checks if an element is in the viewport (fails if need to scroll to it), and I want to execute it by default before clicking on anything. So I added this:
    Copy code
    js
    Cypress.Commands.overwrite("click", (originalFn, subject, options) => {
      if (options !== undefined && options.scroll) {
        originalFn(subject, options)
      } else {
        cy.wrap(subject).should("be.in-viewport").then(() => originalFn(subject, options))
      }
    })
    But this gives me an error on another part of the code saying
    Copy code
    Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.
    
    The command that returned the promise was:
    
      > cy.clear()
    
    The cy command you invoked inside the promise was:
    
      > cy.wrap()
    
    Because Cypress commands are already promise-like, you don't need to wrap them or return your own promise.
    
    Cypress will resolve your command with whatever the final Cypress command yields.
    I don't understand, what am I doing wrong? I'm not returning a promise...
    w
    • 2
    • 24
  • r

    ripe-action-59156

    06/04/2022, 11:52 AM
    You unfortunately need to use
    synpress run
    not
    synpress open
    here
  • r

    ripe-action-59156

    06/04/2022, 11:52 AM
    Works fine when you just
    run
  • r

    ripe-action-59156

    06/04/2022, 11:52 AM
    because of the extension interaction
  • r

    ripe-action-59156

    06/04/2022, 11:53 AM
    I've spent like 6 hours on exactly that though haha
  • b

    busy-vegetable-18177

    06/04/2022, 11:53 AM
    yikes, what part of what im doing is causing this exactly?
  • r

    ripe-action-59156

    06/04/2022, 11:54 AM
    nothing I think, there's a beforeEach that sets the extension up that you can't modify
  • r

    ripe-action-59156

    06/04/2022, 11:54 AM
    you can skip it though with
  • b

    busy-vegetable-18177

    06/04/2022, 11:54 AM
    extension?
  • r

    ripe-action-59156

    06/04/2022, 11:54 AM
    metamask
  • r

    ripe-action-59156

    06/04/2022, 11:54 AM
    export SKIP_METAMASK_SETUP=1
    and
    export SKIP_METAMASK_INSTALL=1
  • b

    busy-vegetable-18177

    06/04/2022, 11:54 AM
    not sure what that is lol
  • r

    ripe-action-59156

    06/04/2022, 11:55 AM
    it's for ethereum transactions
  • r

    ripe-action-59156

    06/04/2022, 11:55 AM
    a chrome extension
  • r

    ripe-action-59156

    06/04/2022, 11:55 AM
    we need to for e2e
  • r

    ripe-action-59156

    06/04/2022, 11:55 AM
    that's what
    synpress
    is for
  • r

    ripe-action-59156

    06/04/2022, 11:56 AM
    oh wait
  • r

    ripe-action-59156

    06/04/2022, 11:56 AM
    you're not replying to my issue are you
  • r

    ripe-action-59156

    06/04/2022, 11:56 AM
    god
  • r

    ripe-action-59156

    06/04/2022, 11:56 AM
    I'm stupid
  • r

    ripe-action-59156

    06/04/2022, 11:56 AM
    sorry
  • b

    busy-vegetable-18177

    06/04/2022, 11:56 AM
    im so confused lol
1...757677...252Latest