This project will include most of the topics we have learnt so far. This repository includes a basic skeleton with automated tests, use it for you submissions. In this project you will create a Todo List Web Application, in which the user can store prioritized todo tasks and view/sort that list
Goal (only functionality):
We have created automated tests for your convenience, use it to check your progression.
Note that the automated tests rely on your code having the exact class names and Ids as specified below. Feel free to add your own.
To run the tests simply run
$ npm run test
The web app should have a heading
The web app should have two sections: Control section and View section
The control section is where the user adds his todo task and priority, and should have three elements:
The View section is where we display the list of added todo tasks and data and should start empty. Each added todo should be inserted to the list.
After the user click on add button you need to "reset" the input value
Every todo item should have "container" div with class todoContainer
that will contain 3 elements:
todoText
with the text of the todo tasktodoCreatedAt
that will hold the creation time of the task in a SQL formattodoPriority
Good way 👍🏿:
<div class="todoContainer">
<div class="priority">
1
</div>
<div class="todoCreatedAt">
2020-06-18 11:51:12
</div>
<div class="todoText">
the todo text
</div>
</div>
Bad way 👎🏿:
<div class="todoContainer">
<div class="priority">
1
</div>
<div class="todoCreatedAt">
2020-06-18 11:51:12
</div>
<div class="todoText">
<span>the todo text</span>
</div>
</div>
Add a counter element to reflect the current number of todos stored in the app. This element should have a id counter
.
Add a button with id sortButton
. Clicking this element should resort the todo list by their todos priority (DESC)
$env:RECORD_TEST='true'; npm run test
, on mac RECORD_TEST=true npm run test
(Can take up to 3-4 min) that will create ui-testing-recording.gif
that will show your app during testing session - push this file as wellui-testing-recording.gif
to the README.md file under this section, if you want you can add another gif if you feel the auto-generated one not beautiful enoughAdd link to the PR you created in your private repo here, fill the other details
GOOD LUCK!