https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • l

    lively-monkey-14354

    01/04/2023, 7:27 PM
    Since updating to Cypress 12.3, I've been having this issue that is hard to put succinctly enough for Google. I did not have this error in 10.10.
  • l

    lively-monkey-14354

    01/04/2023, 7:27 PM
    I'm testing an appointment booking service in e2e testing with our real database.
  • l

    lively-monkey-14354

    01/04/2023, 7:28 PM
    In a before hook, I create an appointment.
  • l

    lively-monkey-14354

    01/04/2023, 7:28 PM
    In a beforeEach hook, I navigate to the appointment details page (using cy.visit()) of that appointment. All subsequent tests should be based on this page.
  • l

    lively-monkey-14354

    01/04/2023, 7:30 PM
    However, the first test in the script fails because it's not on the appointment details page--and the same thing happens if I skip the first test, or only run a random test. All subsequent tests navigate to the page from the before hook and pass; only whichever one is first fails.
  • l

    lively-monkey-14354

    01/04/2023, 7:30 PM
    I've tried adding a super long page timeout on the cy.visit command, but that's not being used.
  • l

    lively-monkey-14354

    01/04/2023, 8:13 PM
    I figured it out! There are some trailing API calls in the before hook that seem to be causing the problem. Adding cy.wait(10000) at the end of that hook confirmed that that's the cause, next step is to find a better way to go about this.
  • r

    rich-eye-60315

    01/04/2023, 11:27 PM
    is it possible to automate payment simulator in a point of sale end testing?I have a point of sale app is a browser based but af the end of testing,i have to use external simulator for payment process such as visa,master and submit payment.Is it possible to automate end to end flow?
  • t

    thousands-house-85089

    01/05/2023, 2:49 AM
    If you can navigate to the simulator interface via a URL then sure
  • a

    ambitious-kite-44982

    01/05/2023, 4:49 AM
    Hi Team
  • a

    ambitious-kite-44982

    01/05/2023, 4:52 AM
    Anyone have execute google lighthouse? I’m getting below error. Cypress version : 12.2.0 Cypress-audit version : 1.1.0 Cypress-cucumber-preprocessor : 4.3.1 Error I’m getting is : cy.task('lighthouse')` failed with the following error: > You probably have multiple tabs open to the same origin Please refer the error image for more info.
  • a

    ambitious-kite-44982

    01/05/2023, 4:53 AM
    Application url https://lcdev.digitalpaperflow.com/
  • r

    ripe-daybreak-97926

    01/05/2023, 4:58 AM
    @best-flower-17510 Can he get help from the Cypress developer? Or a plugin expert?
  • a

    able-traffic-38184

    01/05/2023, 8:07 AM
    There is a very good example of Lighthouse usage with Cypress https://glebbahmutov.com/blog/cypress-lighthouse/
  • a

    able-traffic-38184

    01/05/2023, 8:08 AM
    I have faced some problems with lighthouse - when trying to make html report, but with json report it runs smooth
  • a

    ambitious-kite-44982

    01/05/2023, 8:49 AM
    Yes @able-traffic-38184 , issue is given application url we are not able to automate, from application site there is not issue that i can see
  • r

    ripe-traffic-15039

    01/05/2023, 8:51 AM
    any ideas anyone?
  • p

    purple-afternoon-2408

    01/05/2023, 9:33 AM
    Why this error? There is a widget down right corner, so the page was loaded somehow?
  • p

    purple-afternoon-2408

    01/05/2023, 9:33 AM
    Do anyone also know how to prevent cypress from stopping due to console error? (it stops the tests due to a random console type errors)
  • g

    gray-kilobyte-89541

    01/05/2023, 11:46 AM
    your application threw an error?
  • p

    purple-afternoon-2408

    01/05/2023, 11:57 AM
    There are no errors on the backend nor frontend
  • p

    purple-afternoon-2408

    01/05/2023, 11:57 AM
    In the network console, it didn't even make the request to load the page?
  • p

    purple-afternoon-2408

    01/05/2023, 12:01 PM
    Is there a time limit for the server to respond?
  • p

    purple-afternoon-2408

    01/05/2023, 12:07 PM
    I have a major problem with
    cy.session
    , as
    it
    tests runs, after 2-3 tests, the test user is no longer logged in, I am assuming that either the session changes or cypress doesn't send the right cookies
  • p

    purple-afternoon-2408

    01/05/2023, 12:07 PM
    this happens in 1
    describe
    only thats the only one that I run
  • g

    gorgeous-mechanic-23097

    01/05/2023, 2:55 PM
    I noticed recently that cypress has takes time to load the tests even border running them. Also, once I click on an element and copy to clipboard to past on my text editor, it doesn’t past what I copy.
  • g

    gorgeous-mechanic-23097

    01/05/2023, 2:55 PM
    Anyone encounter this issues yet? And have a solution please?
  • f

    full-lighter-7311

    01/05/2023, 3:17 PM
    "Timed out retrying after 4050ms: cy.click() failed because the center of this element is hidden from view: Text Fix this problem, or use {force: true} to disable error checking."
  • f

    full-lighter-7311

    01/05/2023, 3:18 PM
    Anyone know why is this happening?
  • h

    handsome-businessperson-71907

    01/05/2023, 3:19 PM
    Had similar issue earlier, cy.click({force:true}) will fix this
1...180181182...192Latest