Giter Site home page Giter Site logo

wlsf82 / random-select-with-disabled-option Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 57 KB

Sample project to demonstrate how to select a random option from a select field with a disabled options.

Home Page: https://youtu.be/zzKML3wlkSI?si=mucmwpQBWlUucBei

License: MIT License

JavaScript 36.56% HTML 58.79% CSS 4.64%
cypress talking-about-testing cy-dot-hands-on

random-select-with-disabled-option's Introduction

random-select-with-disabled-option

Sample project to demonstrate how to select a random option from a select field with disabled options.

Pre-requirements

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 and 9.5.0 of git, Node.js and npm, respectively. I suggest you use the same or later LTS versions.

Installation

Run npm install (or npm i for the short version) to install the dev dependencies.

Tests

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.

Tests' demo

Below is a video demonstrating the tests running.

randomSelectWithDisabledOption.cy.js.mp4

Support this project

If you want to support this project, leave a ⭐.


Created with 💜 by Walmyr.

random-select-with-disabled-option's People

Contributors

wlsf82 avatar

Stargazers

João Paulo Paulino dos Santos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.