This project was bootstrapped with Create React App. For me, the good thing is, it can prepare lots of things including test, packaging(using webpack).
- Git clone this Repo.
- Run
npm install
- npm (run) start
Then it will automatically direct to localhost:3000 in your default browser. This devserver is for development.
-
Click on "Request an Invite" Button
Expectation: Invite Dialog shows
-
Click on area other than the dialog
Expectation: Dialog hides and home page shows
-
Click on "Request and Invite" button
-
In the dialog, input a. user name less than 3 characters, b. email without charactor @ c. email confirmation not same as email
Expectation: All 3 inputs will be invalid and send button is disabled
-
Input with valid content
Expectation: All will be valid and send button can be clicked
-
Change email confirmation to be different with email
Expectation: email confirmation will be invalid and send button is disabled
-
Change email to match email confirmation
Expectation: valid again
-
Hide the dialog and show it again, click on send button when nothing is inputted.
Expectation: All 3 inputs will be invalid and button is disabled
-
Click on the send button when all inputs are valid
Expectation: button is diabled and button test changes to indicate it is sending request. After a few seconds, Success Dialog shows, tells that registering success.
-
Click on are other than dialog or click on OK button
Expectation: Dialog hides and home page shows
-
Same as step 1 in last test case but email should be
[email protected]
Expectation: After a few seconds, bad request message is shown on dialog
-
Click send button again
Expectation: It can be re-requested.