Giter Site home page Giter Site logo

delivery-tracker-1's Introduction

Delivery Tracker 1

Target

You should build an app that keeps track of packages for a user. Here is a target to match.

To explore, sign up and create a few deliveries. You can also sign in with any of:

and password: password.

Behaviors to note:

  • You can't do anything in the app until you sign up or sign in.
  • The home page has a list of deliveries that you're expecting.
  • There are two sections on the home page: "Waiting on" and "Received".
  • You can log a new delivery using the form at the top of the page. Once added, it appears in the "Waiting on" section.
  • You must provide a description and a date that the package is expected to arrive on, or the entry is not accepted.
  • For items in the "Waiting on" section, there is a button that, when clicked, moves the item to the "Received" section.
  • For items in the "Received" section, there is a link to delete the item.

Implementation details that you must stick to:

  • As usual, pay attention to the copy in buttons, links, labels, headings, etc — spelling, capitalization, and punctuation matter.
  • The sign in page is located at /user_sign_in.
  • The sign up page is located at /user_sign_up.
  • The "Waiting on" section should be contained within a <div> that has the class "waiting_on".
    • The background-color of the "Waiting on" section should be lightgoldenrodyellow.
  • The "Received" section should be contained within a <div> that has the class "received".
    • The background-color of the "Received" section should be lightgreen.
  • For items in the "Waiting on" section, the date that the delivery was expected on is displayed. If the date is more than 3 days ago, the color of the date is red.

Other notes:

  • In the target, the field to enter a date is an <input type="date">. This input type may not work properly on all browsers — use Chrome when testing.

All other implementation details are up to you.

Specs

Click here to see names of each test
  • The home page has an h1 element with the text "Delivery Tracker"
  • The home page has an h2 element with the text "Expecting a package?"
  • The home page has the text "Know if something gets lost in the mail."
  • The home page has a div element with the class "waiting_on"
  • The home page has an h2 element within the "waiting_on" div with the text "Waiting on"
  • The home page has a div element with the class "received"
  • The home page has an h2 element within the "received" div with the text "Received"
  • The home page has a label the text "Description" with a matching text input
  • The home page has a label with the text "Supposed to arrive on" with a matching input
  • The home page has a label the text "Details" with a matching textarea
  • The home page has a button element with the text "Log delivery"
  • The background-color of the div of class "waiting_on" is lightgoldenrodyellow
  • The background-color of the div of class "received" is lightgreen
  • The home page has a button that logs a package delivery
  • The Waiting on section displays each package delivery description
  • The Waiting on section displays the expected arrival date for each package
  • The Waiting on section has a button to mark a delivery as received with the text 'Mark as received'
  • The Waiting on section has buttons to move each delivery packages to the "Received" section
  • The Received section displays each package delivery description
  • The Received section displays the formatted updated at time for each package
  • The Received section has a link to delete deliveries with the text "Delete"
  • The home page displays the message, "Added to list", after logging a delivery
  • The text of the expected arrival date is red when the date is more than 3 days ago
  • delivery-tracker-1's People

    Contributors

    raghubetina avatar bpurinton avatar jelaniwoods avatar iblash 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.