Visit: https://devhubby.com/thread/how-to-mock-button-click-in-jest