https://cypress.io logo
Join Discord
Powered by
# general-chat
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:23 AM
    If I don't do any visit and just log the current time, it shows the time unchanged
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:24 AM
    I tried all the examples I could find on the internet
  • a

    adorable-smartphone-87280

    05/31/2022, 1:24 AM
    cy.clock()
    works by halting system time and allowing you to advance it with
    cy.tick()
    - so isn't it expected that the time would log out without changing?
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:25 AM
    I am passing the time I want cy.clock(Date.UTC(2022, 4, 16), ['Date'])
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:26 AM
    I want to test with a date in the past, not in the future
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:27 AM
    yeah, bravo
  • a

    adorable-smartphone-87280

    05/31/2022, 1:29 AM
    So your issue is that after calling
    cy.clock()
    your
    cy.visit()
    doesn't work?
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:29 AM
    yes, but not only that. If I don't do any visit and I log the time, the current time is unchanged
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:30 AM
    looks like is not working at all, at least for me
  • a

    adorable-smartphone-87280

    05/31/2022, 1:30 AM
    Ah, I see.
  • a

    adorable-smartphone-87280

    05/31/2022, 1:31 AM
    clock.restore()
    gets called between each test. Are you doing any of this in a
    beforeAll()
    hook or something?
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:32 AM
    I tried in beforeEach and also in it
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:32 AM
    same thing
  • a

    adorable-smartphone-87280

    05/31/2022, 1:33 AM
    I'm sorry I'm not being more helpful. I've never used this feature, I'm just trying to think through ideas with you.
  • d

    dazzling-cartoon-99399

    05/31/2022, 1:35 AM
    no worries, thanks for trying.
  • e

    enough-river-52418

    05/31/2022, 2:28 AM
    i got this issue too... still looking for the solution
  • d

    damp-kangaroo-1521

    05/31/2022, 5:13 AM
    Hi, cypress-file-upload should works with vue component?
  • v

    victorious-midnight-45836

    05/31/2022, 8:22 AM
    this one should work https://github.com/faker-js/faker/releases/tag/v6.3.1. I was playing with this over weekend and this version worked fine
  • b

    bland-appointment-56087

    05/31/2022, 8:35 AM
    Hi, do you know if there is a way to merge report from the actual run and the previous run? I mean, we have pretty flaky tests and we are not able to fix them. As extrema ratio we are considering to consider the test failure only if the actual and the previous run is failed in the same place. Do you know if already exist such tool to merge the successful results?
  • r

    red-toddler-79937

    05/31/2022, 1:33 PM
    Why I hate Cypress:
  • g

    gray-kilobyte-89541

    05/31/2022, 1:36 PM
    yeah, it does not serialize the boolean value correctly. Since all attributes are strings, you need
    cy.get(...).should('have.attr', 'aria-selected', 'true')
    😦
  • r

    red-toddler-79937

    05/31/2022, 1:36 PM
    yah i know, i fixed it a couple days ago, was joking around. hahah
  • g

    gray-kilobyte-89541

    05/31/2022, 2:52 PM
    You will appreciate this video: New video showing refactoring a Cypress test from imperative to be declarative "Click Each Item Test Refactoring"

    https://youtu.be/wRLODxdWyuwâ–¾

  • r

    refined-barista-99014

    05/31/2022, 7:07 PM
    Hello 👋 Is there a way to reset the application to the way it was before a test ran ? I am running a test that creates a tag. However, when I try to run that test multiple times in a row it tries to create a duplicate tag which errors. Would the best way to handle this to write code within that test to delete the tag or is there a way to reset it ?
  • e

    enough-river-52418

    06/01/2022, 1:46 AM
    yup just tried.. it works... thanks
  • q

    quaint-battery-7856

    06/01/2022, 12:12 PM
    Hi guys, will high appreciate any help. I am using cypress with cucumber and last time Cypress go struggling. It try to start the test and then come to the infinity loading. I have not ideas what is happening. Is there any possibilities to get cypress stacktrace or debug it?
  • a

    adorable-machine-81849

    06/01/2022, 1:50 PM
    Any idea how to lock the DOM and capture the element
  • l

    lemon-yak-55678

    06/01/2022, 1:52 PM
    If you’re using the GUI, playback your script. Find the relevant step you’re interested in and click on it. This will lock the dom in place.
  • a

    ambitious-musician-78978

    06/01/2022, 2:52 PM
    Hello colleagues, good afternoon everyone. I want to ask if you know where I can find a framework of (cypress with cucumber, enchantment and postgres), to serve as a basis for automation. I would greatly appreciate it.
  • a

    ambitious-musician-78978

    06/01/2022, 3:00 PM
    I am willing to pay money to the person who helps me, thanks
1...444546...127Latest