Skip to content

bahmutov/click-returns-true

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

click-returns-true

A simple Cypress React component test to check if the onClick prop has been called after clicking on a button. Read the blog post "A Quick React Component Test"

Install and open

$ npm install
$ npx cypress open-ct
# click on the spec file

About

A simple Cypress React component test to check if the `onClick` prop has been called after clicking on a button.

Topics

Resources

Stars

Watchers

Forks