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

    gray-kilobyte-89541

    01/16/2023, 4:23 PM
    you could look at the status of the test in the
    after
    block. I think I have a video that you can find by searching for "after" at https://cypress.tips/search
  • g

    gray-kilobyte-89541

    01/16/2023, 4:23 PM
    yeah, I think https://cypress.tips/courses/network-testing/lessons/bonus12 is pretty much it
  • f

    future-glass-89764

    01/16/2023, 4:24 PM
    Thank you!
  • f

    future-glass-89764

    01/16/2023, 4:25 PM
    May i know is this channel is for free service or its going to expire in some days?
  • w

    wooden-shampoo-53816

    01/16/2023, 4:28 PM
    One additional difference between what is mentioned in the documentation and what I want is that, I want to listen to every request globally and save output. I wan to configure this once. I have over 100 tests and I don't want to write
    cy.intercept
    and
    cy.wait
    in every test and multiple times in a single test. Each test makes multiple requests.
  • g

    gray-kilobyte-89541

    01/16/2023, 4:52 PM
    yeah, I guess a new lesson is in order
  • g

    gray-dawn-16972

    01/16/2023, 5:03 PM
    @gray-kilobyte-89541 is there a way I can save the logs generated in a Cypress run?
  • g

    gray-kilobyte-89541

    01/16/2023, 5:06 PM
    what logs?
  • g

    gray-dawn-16972

    01/16/2023, 5:07 PM
    API calls made and all
  • g

    gray-kilobyte-89541

    01/16/2023, 5:07 PM
    by the application?
  • 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
1...248249250251252Latest