Giter Site home page Giter Site logo

brocolli-invitation-request's Introduction

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).

How To Run and Test

  1. Git clone this Repo.
  2. Run npm install
  3. npm (run) start

Then it will automatically direct to localhost:3000 in your default browser. This devserver is for development.

Test Cases

Test Case 1: Invite Dialog can be invoked and dismissed

  1. Click on "Request an Invite" Button

    Expectation: Invite Dialog shows

  2. Click on area other than the dialog

    Expectation: Dialog hides and home page shows

Test Case 2: Invite Dialog Validate User Inputs

  1. Click on "Request and Invite" button

  2. 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

  3. Input with valid content

    Expectation: All will be valid and send button can be clicked

  4. Change email confirmation to be different with email

    Expectation: email confirmation will be invalid and send button is disabled

  5. Change email to match email confirmation

    Expectation: valid again

  6. 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

Test Case 2: Request can be sent successfully

  1. 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.

  2. Click on are other than dialog or click on OK button

    Expectation: Dialog hides and home page shows

Test Case 3: Request can be sent with failure

  1. 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

  2. Click send button again

    Expectation: It can be re-requested.

brocolli-invitation-request's People

Contributors

sparrowe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.