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

    user

    12/09/2021, 8:16 AM
    yes, but then after the 50sec I'm getting this:
  • u

    user

    12/09/2021, 8:23 AM
    @User I'm trying with both Electron, Chromium and Firefox this morning, failing for both, and getting a
    browserSocket
    error
    Copy code
    js
    cypress:https-proxy received error on client browserSocket { err: Error: connect ECONNREFUSED ::1:42841     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1142:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 42841 }, url: 'localhost:7071' } +1ms
  • t

    tall-airplane-97209

    12/09/2021, 12:47 PM
    https://docs.cypress.io/guides/references/configuration#Options - change url to baseUrl in your cypress config.
  • u

    user

    12/09/2021, 1:01 PM
    the errors you see is by using cypress example
    testing-dom__drag-drop
    where I'm having the same issue as my project, so baseUrl is set and app running prior to run cypress
  • u

    user

    12/09/2021, 2:49 PM
    I can make it run from docker though, it's only happening with a local instalation, I have upgraded and installed the requirements, same tcp issue
  • c

    cuddly-winter-72122

    12/09/2021, 4:29 PM
    this error has nothing to do with the "couldn't connect to Chrome" error, just fyi, this is from the proxy layer
  • c

    cuddly-winter-72122

    12/09/2021, 4:29 PM
    @User so you click the spec, Chrome opens, starts running your test, then after 50 seconds you get this error?
  • u

    user

    12/09/2021, 4:32 PM
    it opens the browser then nothing, failed after 50sec, from debug command, shows t can't connect
  • c

    cuddly-winter-72122

    12/09/2021, 6:45 PM
    @User can you share the full logs from
    DEBUG=cypress:*
    and that screenshot of
    cypress open
    in a new GitHub issue?
  • c

    cuddly-winter-72122

    12/09/2021, 6:46 PM
    i think there is a bug here, where it is connecting to
    ::1
    instead of
    127.0.0.1
    , we force use of ipv4 for CDP so it shouldn't be trying to connect on
    ::1
    ...
  • u

    user

    12/09/2021, 6:54 PM
    I'm not on my laptop anymore, will do it tomorrow morning.
  • u

    user

    12/09/2021, 6:54 PM
    @cuddly-winter-72122 what's your timezone?
  • c

    cuddly-winter-72122

    12/09/2021, 7:32 PM
    Eastern
  • c

    chilly-soccer-83645

    12/10/2021, 9:44 AM
    Hi, is there a way I can integrate Discord with cypress for reporting purposes, like whenever I run the Test Suite the final pass/fail status to be redirected to one of the discord groups
  • u

    user

    12/10/2021, 11:07 AM
    I found the issue following your comment on ipv6, when I was doing
    ping localhost
    it was returning
    ::1
    so I have edited my
    /etc/hosts
    to comment out the
    ::1 localhost
    line and cypress was running fine then, but the ping not. but found out that for some reason I had a typo in my hosts file for ipv4:
    127.0.0.1 locahost
    instead of
    127.0.0.1 localhost
    (I was missing the l....) TL;DR: typo in my /etc/hosts file so now it's working fine thank you
  • i

    important-river-75795

    12/10/2021, 12:12 PM
    Use a discord webhook to send a message after the run, I think easiest way to get the pass/fail ratio would be to generate mocha json reports and then merge them and take the stats from there
  • c

    chilly-soccer-83645

    12/10/2021, 1:08 PM
    thanks for the information will give it a try
  • i

    important-river-75795

    12/10/2021, 1:09 PM
    Oh cypress also has got that info
  • i

    important-river-75795

    12/10/2021, 1:09 PM
    https://docs.cypress.io/api/plugins/after-run-api#Log-the-number-of-passed-tests-of-a-run
  • i

    important-river-75795

    12/10/2021, 1:09 PM
    Not sure if after:run will trigger after each spec file tho
  • f

    flaky-television-87833

    12/11/2021, 11:06 AM
    I am trying a different approach to my problem, but now the behaviour of cypress is not clear. Could anyone help? I wrote my question with full details on stack overflow here: https://stackoverflow.com/questions/70314576/how-to-stub-two-requests-with-differents-stubs-using-cy-intercept I would really appreciate some feed back as this is relating to an important project. EDIT: I found the solution.
  • p

    proud-room-838

    12/12/2021, 11:12 PM
    Anyone using cypress-file-upload where cypress folder isn't placed in the same folder as package.json/node_moduels are located. I've described our problem here: https://github.com/abramenal/cypress-file-upload/issues/241#issuecomment-991988878
  • f

    freezing-carpenter-97430

    12/13/2021, 2:17 PM
    Hello guys! Is there any Q/A who does automation for bidding applications (like auctions) Please ping me if you are the one. I need short brainstorming. Thank you in advance
  • c

    creamy-train-56346

    12/13/2021, 5:58 PM
    Is it possible to access web element's color in Cypress? 🤔 The catch is no explicit
    background-color
    property for this element. It's color (hex) is hidden within a css class.
  • w

    wonderful-match-15836

    12/13/2021, 7:08 PM
    Once you have the element, you should be able to get something useful using
    getComputedStyle
    like this:
    getComputedStyle(document.querySelector('body')).backgroundColor
  • h

    handsome-cartoon-58565

    12/13/2021, 7:47 PM
    Hey, i asked a question on #763114122065739818 , but now i noticed this i rather more suitable channel to ask for help, so i let myself to paste my original question and hopefully somebody will notice 🙂 https://discord.com/channels/755913899261296641/763114122065739818/920019537318014986
  • u

    user

    12/13/2021, 11:46 PM
    Heya, I'm trying to get started with Cypress, so I installed it with
    npm
    , and tried to
    npx cypress open
    it in a new node project. The GUI seems to just hang with the spinner. Is there a step of the install I'm missing? The command output is this: ``` [3708248:1214/124418.771128:WARNING:vaapi_wrapper.cc(586)] VAAPI video acceleration not available for swiftshader [3708248:1214/124418.771303:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is /usr/bin/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS ```If any other logs are useful I can go find them.
  • u

    user

    12/13/2021, 11:47 PM
    (I'm on Manjaro and did try a few different install methods before
    npm
    , so I hope they haven't broken something.)
  • u

    user

    12/13/2021, 11:48 PM
    Here's a picture of the GUI hanging.
  • u

    user

    12/14/2021, 7:26 AM
    Thanks for the suggestions everyone, I ended up solving it by downgrading to 9.0.0.
1...414243...252Latest