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

    gray-dawn-16972

    01/16/2023, 5:08 PM
    Yes
  • g

    gray-kilobyte-89541

    01/16/2023, 5:08 PM
    kind of. There is https://github.com/bahmutov/cypress-failed-log and https://github.com/archfz/cypress-terminal-report
  • g

    gray-dawn-16972

    01/16/2023, 5:09 PM
    Thanks
  • g

    gray-kilobyte-89541

    01/16/2023, 8:41 PM
    The lesson https://cypress.tips/courses/network-testing/lessons/bonus69 (paid) shows how to do it
  • g

    gray-kilobyte-89541

    01/16/2023, 10:32 PM
    I have created a lesson for my (paid) network course, it shows what I think the problem is and how to solve it by spying on the network calls using
    cy.intercept
    command https://cypress.tips/courses/network-testing/lessons/bonus70
  • c

    curved-dress-90603

    01/16/2023, 11:13 PM
    I m upgrading to Cypress 12 and each it
  • m

    magnificent-lamp-44201

    01/17/2023, 4:51 AM
    In my
    cypress.env.json
    I set the
    baseUrl
    variable, with the URL that I want to use, and I call it in a
    beforeEach
    by doing
    cy.visit(Cypress.env('baseUrl')
    . Unfortunately is throwing me an error. The URL exists (it's an URL I created for a mock server). If I attempt to visit
    https://3dd78cb3-70ab-4481-9209-4372df167733.mock.pstmn.io/users
    is going to show me a response. If I set the URL in the
    cypress.config.ts
    file, it works (but I don't want to set the URL in there). How can I fix this issue? I attached other images of how I set the env variable, and how I use it.
  • c

    careful-tent-30457

    01/17/2023, 5:21 AM
    Thanks @gray-kilobyte-89541 but these elements that we remove are not triggering any network calls :/ "good news" is that when our CI environment woke up again I reran the test and it worked.. the more test we add the more flake (especially in CI) we get. And it's frustrating to fix as it's exceptionally rare it happens on a local machine
  • m

    modern-dawn-86006

    01/17/2023, 6:09 AM
    I would suggest you to use www.google.com in your environment file for debug purposes, if it works then you can use your mock server. Also the url you have mentioned in the msg is url/users but in the cypress, you are providing url. Are you sure that your mock server is running? 🤔
  • h

    helpful-truck-53930

    01/17/2023, 9:43 AM
    Hello community, I have a problem with the latest version 12.3.0 of cypress and I get a Webpack Compilation Error. After a migration from old version to the new version of cypress the cypress.json would changed. I the scope of the project i have installed the Ntlm Plugin. Now iam getting this error ( see pic). It's a bit frustrating. I tried some things but it's doest work. Who have a hint for me? Maybe I can't see the wood because of all the trees. Thanks 🙏
  • r

    rapid-agency-4212

    01/17/2023, 10:04 AM
    Hello community, I have intergated Cypress in github actions and the tests which are passing in my local environment are failing in github action. I am getting jquery not defined error. I am using Cypress 12.2.0 and Jquery 3.0.1 in my code. Are they incompatible ? What else might be the reason ?
  • c

    colossal-table-38461

    01/17/2023, 10:48 AM
    Hello All, Can someone help me in this issue. I am visiting 1 application url using cy.visit() & then in cy.origin() I am passing the login.microsoftonline.com but cy.visit() itself calling the login.microsoftonline.com. Any Idea how we can resolved it?
  • a

    alert-action-80742

    01/17/2023, 11:14 AM
    I am trying to get the element highlighted in the snap but the shadow dom is closed. Can someone help.
  • t

    thousands-house-85089

    01/17/2023, 12:14 PM
    https://docs.cypress.io/api/commands/get Check the part about adding an option "includeShadowDom"
  • t

    thousands-house-85089

    01/17/2023, 12:16 PM
    e.g.
    Copy code
    cy.get('element', {includeShadowDom: true})
  • g

    gray-kilobyte-89541

    01/17/2023, 12:31 PM
    so you have to wait for something else to occur after each click
  • c

    careful-tent-30457

    01/17/2023, 12:35 PM
    no, nothing chain from onClick->reducer function (react.useReducer) and eventual removal from the list, but right now seems more stable, and moving from Chrome -> electron has sorted out all my other issues from yesterday where (local) cypress open => all specs passing (local) cypress run => specs touching our PIXI integration failing with WebGL error (ci) cypress run => flaky tests
  • g

    gray-kilobyte-89541

    01/17/2023, 12:36 PM
    well, just like in my lesson, check if the button is removed before clicking on the next one
  • c

    careful-tent-30457

    01/17/2023, 12:37 PM
    yes, thank you, adding the assertion should at least help removing flakyness
  • g

    gray-kilobyte-89541

    01/17/2023, 12:38 PM
    The more assertions, the better https://on.cypress.io/retry-ability
  • e

    elegant-noon-34773

    01/17/2023, 1:12 PM
    Was wondering if someone could point me in the right direction? I have a react app that on its home page has an react-query call for the endpoint “/api/users” as an example, this is on a refresh interval of 3000ms. Any ideas on how to stop showing these within Cypress because I have multiple query calls and it soon fills up
  • m

    magnificent-rose-9821

    01/17/2023, 1:17 PM
    Hi there! I'm trying to add my tests to circleci, but the problem is that those are taking too long on run, for example, the first test when I use npx cypress run is taking 2 min and in circle ci 8min and sometimes fails with a timeout, I don't know what could be the reason, thank you in advance
  • g

    gray-kilobyte-89541

    01/17/2023, 1:23 PM
    use a more powerful CircleCI machine class
  • e

    elegant-noon-34773

    01/17/2023, 1:24 PM
    What do you mean “use a more powerful CircleCI machine class??” I’m not using and don’t plan to use CircleCI
  • g

    gray-kilobyte-89541

    01/17/2023, 1:28 PM
    opps, replied to the wrong thread, my bad
  • g

    gray-kilobyte-89541

    01/17/2023, 1:28 PM
    use a more powerful CircleCI machine class
  • e

    elegant-noon-34773

    01/17/2023, 1:29 PM
    No worries
  • m

    magnificent-rose-9821

    01/17/2023, 1:37 PM
    I'll try it, thanks
  • m

    magnificent-lamp-44201

    01/17/2023, 3:28 PM
    Yes, my mock server works (try to open the other URL sample I provided). The other thing that I did was to call directly in my requests the URL env variable
  • f

    faint-ocean-92094

    01/17/2023, 3:31 PM
    Hey friends. I'm having an issue with db connection that I wanted to consult with you all. In our project, it is essential that we connect to the DB for multiple tests (data, third party integrations, urls, etc) and the DB can only be accessed through SSH. This is the first time I´m adding DB integration through ssh in cypress so I don't know a lot of options. Anyway, I added the package mysql-ssh, configured a task on cy.press.config.js, and passed on the ssh-key and db config. Everything is working smoothly. My problem is that that package is showing High Severity Vulnerabilities, and I've tried many solutions with no success. Does anyone know of a viable solution to such vulnerabilities, or alternatively a different dependency I could implement? Thank you