Sample project to demonstrate how to select a random option from a select field with disabled options.
It is required to have git, Node.js, and npm installed to clone and run this project.
I used versions
2.42.1
v18.15.0
and9.5.0
of git, Node.js and npm, respectively. I suggest you use the same or later LTS versions.
Run npm install
(or npm i
for the short version) to install the dev dependencies.
To run the tests in headless mode, use the command npm test
(or npm t
for the short version.)
To open the Cypress App to run tests in interactive mode, use the command npm run cy:open
.
Below is a video demonstrating the tests running.
randomSelectWithDisabledOption.cy.js.mp4
If you want to support this project, leave a ⭐.
Created with 💜 by Walmyr.