Tag: cypress

How to assert sorted dates in Cypress

Here's how I use Cypress to assert that the user interface I am building displays datetime information sorted chronologically. Consider the list of dates served at the port 3000 that looks like this: <ul id="sorted"> <li>14.12.1999</li> <li>…

Prevent push when skipping Cypress tests

Here's way I use to prevent pushing changes when some of the Cypress tests are being skipped Install required packages npm i -D cypress husky start-server-and-test Define your dev script in package.json if not done by your scaffolding ... "scripts": { + "de…