https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • b

    brave-hydrogen-53919

    07/21/2021, 8:34 PM
    $(npm bin)/cypress run --spec 'cypress/integration/Tests/GeneralTests/xyz.js' --browser edge
    will this work on ci ?
  • b

    brave-hydrogen-53919

    07/21/2021, 8:34 PM
    $(npm bin)/cypress run --spec 'cypress/integration/Tests/GeneralTests/xyz.js' --browser chrome
    this was working fine with chrome browser
  • b

    bulky-sundown-74498

    07/21/2021, 8:34 PM
    Probably not if you have not installed the browser manually before in your docker
  • b

    bulky-sundown-74498

    07/21/2021, 8:34 PM
    This depends really on what CI you are using
  • b

    brave-hydrogen-53919

    07/21/2021, 8:35 PM
    i'm using travis ci
  • b

    bulky-sundown-74498

    07/21/2021, 8:35 PM
    with docker ?
  • b

    bulky-sundown-74498

    07/21/2021, 8:35 PM
    or with the native images ?
  • b

    bulky-sundown-74498

    07/21/2021, 8:36 PM
    Native images can't have edge
  • b

    bulky-sundown-74498

    07/21/2021, 8:36 PM
    If you are using the free tier of travis, I believe you won't be able to test edge
  • b

    bulky-sundown-74498

    07/21/2021, 8:37 PM
    but Firefox will be OK
  • b

    bulky-sundown-74498

    07/21/2021, 8:37 PM
    you need it to be requested in your testing machine
  • b

    brave-hydrogen-53919

    07/21/2021, 8:38 PM
    i'm using an enterprise version
  • p

    plain-lifeguard-91120

    07/21/2021, 8:42 PM
    I randomly started to get filed to connect to chrome, retrying in 1 second today it might be because I tried to update cypress? I saw a popup giving me the command to update cypress today it was like 'npm install cypress 8.0.0' but that wasn't it anyone know the command?
  • b

    brave-hydrogen-53919

    07/21/2021, 8:43 PM
    npm install cypress@8.0.0
    should help
  • b

    brave-hydrogen-53919

    07/21/2021, 8:44 PM
    @User i had installed those browsers, however only edge shows up in my test runner not the firefox
  • b

    bulky-sundown-74498

    07/21/2021, 8:44 PM
    have you opened firefox ? does it work ?
  • b

    brave-hydrogen-53919

    07/21/2021, 8:47 PM
    yes firefox is working , but it doesn't show up in the test runner
  • p

    plain-lifeguard-91120

    07/21/2021, 8:47 PM
    may sound silly but have you tried restarting? usually works for me haha
  • b

    brave-hydrogen-53919

    07/21/2021, 8:48 PM
    restarting the cypress or the machine itself ?
  • p

    plain-lifeguard-91120

    07/21/2021, 8:48 PM
    cypress
  • b

    bulky-sundown-74498

    07/21/2021, 8:48 PM
    both
  • b

    bulky-sundown-74498

    07/21/2021, 8:48 PM
    If cypress does not detect firefox it might not be completely installed
  • b

    bulky-sundown-74498

    07/21/2021, 8:48 PM
    retarting might help too
  • b

    brave-hydrogen-53919

    07/21/2021, 8:49 PM
    alright, i'll restart
  • f

    fancy-airplane-60156

    07/22/2021, 5:44 AM
    Hi, I'm doing some form submission using cypress. I See that few assertions get executed on a different element than the ones i intend to. Is it because commands are running in aynchronous mode ?
  • f

    fancy-airplane-60156

    07/22/2021, 6:10 AM
    @User Please help
  • k

    kind-needle-3585

    07/22/2021, 10:19 AM
    Can you please share the code snippet which have used and the locators?
  • b

    bland-oil-91894

    07/22/2021, 12:03 PM
    Hi folks. I am writing some e2e tests and wondering if there is any way to listen to websockets with cypress? I see some plugins and modules to mock and test but am wondering if it is possible to listen for and check the messages to a 3rd party websocket (pusher to be more specific)?
  • p

    plain-lifeguard-91120

    07/22/2021, 4:19 PM
    cy.clearCookies(); and cy.clearLocalStorage(); don't seem like they are enough to clear the whole session, any ideas on what else I should do
  • a

    ancient-wire-34126

    07/22/2021, 7:30 PM
    Is there any way to just seed data once, instead of having to do it before each and every test? I can't use ES6 modules apparently, so I can't just seed data and pull the seeded data in in a test
1...141516...192Latest