Skip to content

Latest commit

 

History

History

registration-form

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Registration form kata

This kata is based on the original login form UI kata and comprehensively introduced here.

Introduction

This kata is based on a combination of resources:

The idea is to learn how to apply TDD to code that is meant to be used/executed in a front-end.

Goal

The goal is to build the validation logic belonging to the Aliens' Registration Form using TDD. This way practitioners should get an idea of how the same principles can/should be applied to front-end development.

Requirements for the minimum functionality

  • There is a user name input field, which is limited to 20 characters.
  • The label "Phone, email or username" is left, next to the input field.
  • There is a password field, which is limited to 20 characters.
  • The password is either visible as asterisk or bullet signs.
  • The label "Password" is left, next to the input field.
  • There is a "Log in" button in the bottom right corner of the window.
  • There is a label in a red box above the button. It is only visible if there was an error.

Possible extensions

  • The app can be made more interesting by persisting the user data into a database, see for example this post!