Giter Site home page Giter Site logo

hr-customer-list's Introduction

Customer List

Environment

  • Vue Version: ^3.0.0
  • Node Version: v12 (LTS)
  • Default Port: 8000

Application Demo:

Functionality Requirements

The component must have the following functionalities:

  • The input should initially be empty.
  • If no value is entered, clicking on the 'Add Customer' button should not do anything.
  • Clicking on the 'Add Customer' button should add the input value to the list below. For this, add <li>{input}</li> to the <ul data-testid="customer-list"> element.
  • After adding the value to the list, clear the value of the input box.
  • Please note that the customer list, <ul> element should only be rendered if it has at least one customer added (i.e. at least one <li> child). So initially when app is mounted, since no customers are added, <ul> element should not be rendered.
  • All the values added by the button should be rendered in the list below.

Testing Requirements

  • Input should have data-testid attribute 'app-input'.
  • Button should have data-testid attribute 'submit-button'.
  • Customer list <ul> should have data-testid attribute 'customer-list'.
  • Elements in the list should have data-testid attributes as 'list-item0', 'list-item1', 'list-item2', 'list-item3', and so on.

Project Specifications

Read Only Files

  • __tests__/*

Commands

  • run:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm start
  • install:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm install
  • test:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm test

hr-customer-list's People

Contributors

manaraph avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  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.