You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
sources-peterbabic.dev/how-to-assert-sorted-dates-...
Peter Babič 60dcc7e874
insert posts sources
3 years ago
..
cypress insert posts sources 3 years ago
.gitignore insert posts sources 3 years ago
README.md insert posts sources 3 years ago
cypress.json insert posts sources 3 years ago
index.html insert posts sources 3 years ago
index.js insert posts sources 3 years ago
package-lock.json insert posts sources 3 years ago
package.json insert posts sources 3 years ago

README.md

Asserting sorted dates in Cypress

This demo serves as a minimal working example for the blog post

https://peterbabic.dev/blog/how-to-assert-sorted-dates-cypress

Setup

git clone https://git.peterbabic.dev/demo/datetime-sorted-cypress.git
cd datetime-sorted-cypress
npm install
npm run test

The test should pass. Consider playing with the index.html, re-ordering the dates to affect the test result.

License

MIT