Skip to content

Latest commit

 

History

History

testing-dom__select2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

testing-dom__select2

Testing select elements and Select2 widgets

This example shows how end-to-end tests work with plain <select> HTML elements and with Select2 widgets. Read the blog post Working with Select elements and Select2 widgets in Cypress. For further discussion about flaky tests and "element detached from DOM" error, read the blog post Do Not Get Too Detached.

Find all tests in the cypress/e2e/spec.cy.js file

  • selecting a single value using <select>
  • selecting multiple values using <select>
  • selecting a single value using Select2
  • selecting multiple values using Select2
  • removing one of the selected values using Select2
  • selecting a value from the list dynamically populated from Ajax call using Select2

demo