question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear date field in calendar cypress test filed

See original GitHub issue

I would like to run a test in cypress (v6.0.0). I need to clear default values if calendar it match 4 values. However, when I try to clear the field cypress throws an error.

 cy.get('.ant-calendar-range-picker-input').clear({force: true}).should('have.value', '')

image

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
theTestingApproachcommented, Oct 25, 2021

Hi @Dovile22 can you please advice on how you fixed the issue? thanks

1reaction
Dovile22commented, Feb 17, 2021

issue resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear date field in cypress test - Stack Overflow
I would like to run a test in cypress (v3.1.0) to enter data into the field and later clear the field. I am...
Read more >
How To Fill And Submit Forms In Cypress - LambdaTest
In this blog of the ongoing Cypress tutorial series, we will cover ... File Upload Testing in Cypress; Handling Date picker in Form...
Read more >
cypress-io/cypress - date - Gitter
Hi. I am using 'before()' to setup 'cy.server()' and some routes, with aliases. It works fine for the first test in the script,...
Read more >
Cypress : Few ways to select Calendar Date | by Gurudatt S A
Every application will have some date picker, it could be just an input field where you can directly enter date in defined format...
Read more >
Configuring custom fields – Gurock - TestRail
Custom fields for test cases allow you to add additional details to your test ... a handy calendar control to make it easier...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found