I think you nailed the reasons for using TDD (or testing at all for that matter) although I can’t say I fully relate to the rationale. Saying that TDD is hard because it’s difficult to anticipate how a user is going to use the product is irrelevant. Regardless of the user interaction a submit button should submit.

Having sayed that I feel like you weant through a process that led to that conclusion and I can’t argue with that.

Good read,


Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store