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.
 
 
 
 
 
 
Peter Babič 219b306e73 insert post cypress svelte-dnd-action 1 month ago
..
cypress insert posts sources 2 months ago
.gitignore insert posts sources 2 months ago
README.md insert posts sources 2 months ago
cypress.json insert posts sources 2 months ago
index.html insert posts sources 2 months ago
index.js insert posts sources 2 months ago
package-lock.json insert posts sources 2 months ago
package.json insert posts sources 2 months 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