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

    nutritious-analyst-96582

    12/07/2022, 9:56 PM
    Uh oh, It looks like you have posted the same question in multiple channels. Help us prevent spam by removing any duplicates of your questions, Thanks! πŸ˜€
  • b

    brave-mouse-59640

    12/08/2022, 4:01 AM
    Hi All, I am getting below web scoket connection error when i visit my application url, it will navigate to keycloak login page. After login successful, Home page of production url will display. Since I'm working on Test environment url, so I'm forcing navigate back to Test environment URL. At that time i am getting below webscoket connection error. Can any one help me how to resolve this issue.
  • b

    brave-mouse-59640

    12/08/2022, 4:01 AM
    VM245 2.1fc033ba.chunk.js:2 WebSocket connection to 'wss://' failed: WebSocket is closed before the connection is established.
  • f

    fresh-doctor-14925

    12/08/2022, 8:10 AM
    You've posted this same question several times over the past week, with almost the same phrasing However, none of us can see your application, so it's hard to suggest anything other than broad recommendations like 'have you tried
    cy.origin
    ?'` I suggest you take a look at #763097415896268840 for some tips on how to make your question easier to answer
  • a

    astonishing-window-24437

    12/08/2022, 8:16 AM
    Hello, Cypress cannot enter the "(" symbol as text and I cannot enter it manually with the cypress automation. However, I can enter it manually with normal chrome.
    f
    • 2
    • 10
  • h

    helpful-hairdresser-46183

    12/08/2022, 8:38 AM
    @fresh-doctor-14925 hello, what are you think this comment?
  • f

    fresh-doctor-14925

    12/08/2022, 8:46 AM
    I saw it, but I didn't have anything useful to say based on what you've shared. Also:
    Do not @ mention/ping members unless they are already in a conversation with you
    (From #763097415896268840) You don't need to install a local server to run Cypress. It just runs in the browser. If you've set your baseUrl correctly in your configuration file, it should be fine
  • h

    helpful-hairdresser-46183

    12/08/2022, 8:53 AM
    Excuse me, I'll take that into account.(to ask for help) then can we say: This way is recommended because it is a healthier method for application developers to run tests by standing up the local server? As a QA Engineer, can I run my tests via ci cd by making a request to any url without my local server?
  • f

    fresh-doctor-14925

    12/08/2022, 8:58 AM
    Yeah, you don't need a local server for running Cypress tests in CI. Cypress is just a node.js application, and can be run on any runner capable of running node.js. If you want a better understanding of all this, one of your application developers should be able to help you (easier than one of us trying to explain on here) Cypress's documentation provides configuration examples for various CIs. So you can search for something like "Cypress GitHub Actions example"
  • h

    helpful-hairdresser-46183

    12/08/2022, 11:13 AM
    I understand very well, thank you very much πŸ™‚ I was worried if this is related to the local server, as I got warnings like the following when I tried to run the tests in github actions. However, I just learned that it is impossible to send a request to the url I tested with a global ci. Actually it's totally company policy 😦 I will start integrating processes with Jenkins πŸ™‚ We are verifying this server because it has been configured as your baseUrl. Cypress automatically waits until your server is accessible before running tests. We will try connecting to it 3 more times... We will try connecting to it 2 more times... We will try connecting to it 1 more time... Cypress failed to verify that your server is running.
  • d

    dry-ice-92667

    12/08/2022, 11:29 AM
    I am getting timeout error when trying to fetch data from the mysql database. Can anyone help ?
  • f

    fresh-doctor-14925

    12/08/2022, 11:40 AM
    Yeah. You'll need to add your CI runner's IP to your whitelist in order for that to work Alternatively you can whitelist a header and append that to all application calls via
    cy.intercept
    . Either approach should unblock you πŸ™‚
  • f

    fresh-doctor-14925

    12/08/2022, 12:25 PM
    !moreinfo
  • n

    nutritious-analyst-96582

    12/08/2022, 12:25 PM
    Hey! You're unlikely to get an answer to this question because it is too broad and/or vague. Take a look at #how-to-get-help for some tips on how to improve your question
  • d

    dry-ice-92667

    12/08/2022, 12:27 PM
    @fresh-doctor-14925 @fresh-doctor-14925
  • d

    dry-ice-92667

    12/08/2022, 12:29 PM
    I am calling the task using cy.task ('queryDB','Select * from example').then((results)=>{ Console.log(results) }
  • f

    fresh-doctor-14925

    12/08/2022, 12:30 PM
    And what
    results
    are you seeing?
  • d

    dry-ice-92667

    12/08/2022, 12:31 PM
    Error: read ECONNRESET
  • f

    fresh-doctor-14925

    12/08/2022, 12:33 PM
    It's not something I've tried before, to be honest. This blog outlines a different approach for connecting to a MySQL DB. Maybe you'll have more luck with that https://glebbahmutov.com/blog/verify-phone-part-two/
  • d

    dry-ice-92667

    12/08/2022, 12:33 PM
    Sure..thanks..i l try that out
  • h

    helpful-hairdresser-46183

    12/08/2022, 1:17 PM
    I didn't know that πŸ™‚ I will try and share the latest status here, thank you very much @fresh-doctor-14925 πŸ™‚
  • s

    square-dress-10694

    12/08/2022, 2:51 PM
    newbie question: Is it possible to use Cypress to test a website created with a low code app? I'm using Retool, and I'm looking for a testing solution. Thanks!
    f
    m
    • 3
    • 6
  • b

    better-elephant-20934

    12/08/2022, 2:56 PM
    regarding this error I was facing. noobie mistake (of course) I made a function containing "describe" and "it" inside a "it" in other part of the test, just invoke the function without wrapping it. fix it
  • g

    gray-kilobyte-89541

    12/08/2022, 2:57 PM
    yes
  • p

    powerful-agency-55160

    12/08/2022, 3:18 PM
    Hi guys, i have trouble with this error. How i can catch this error, so cypress still can run?
  • p

    powerful-agency-55160

    12/08/2022, 3:19 PM
    this my code
  • m

    mysterious-belgium-25713

    12/08/2022, 3:28 PM
    I would not use regular if else. I would use the cypress if plugin https://github.com/bahmutov/cypress-if
  • b

    bitter-fountain-36713

    12/08/2022, 3:36 PM
    Also you are using
    Cypress.on()
    which will have a global impact. Furthermore, it might have unintended consequences inside your for loop.
  • p

    powerful-agency-55160

    12/08/2022, 3:53 PM
    if use this plugin, how to word
    break
    in looping?
  • r

    rough-petabyte-49242

    12/08/2022, 4:00 PM
    Hi All. How can I set to variable in constructor (class) value innerText?
1...162163164...192Latest