a javascript todo web application
- The app must be written using HTML, CSS and JavaScript
- The app will be client-side only and will not connect to any mid-tier or server
- The app does not need to be cross browser compatible
- The app does not need to be responsive
- When the user enters a task in the "To-do" textbox and clicks the ADD button, it will get added to the list
- If they type a task and hit the enter key, it will also get added to the list
- If the user checks the checkbox next to a task, the system will cross-out the task to mark it as completed
- If the user un-checks the checkbox next to a task, the system will remove the cross-out to mark the task as incomplete
- If the user clicks the delete link next to a task, that task will be removed from the list
- If the user clicks the edit link next to a task, the task will become editable
- The user will be able to save their edit by hitting the enter key
- If the user refreshes the page, the task list will be cleared
- Clicking on delete when the task is in edit mode is possible
- Confirmation is not implemented when delete is clicked
- Other tasks cannot be edited when one task is being edited
- other tasks can be deleted when one task is being edited
- A task that is being edited can be deleted
- A task that is striked can be deleted/ edited
- A task that is not checked can be noth edited/ deleted
- If the task text is very long, it is displayed in multiple lines, "edit | delete" buttons are moved to the next line
S.No. | Summary | Test steps | Expected behaviour | status |
---|---|---|---|---|
1. | New row for a task should not be added if the task input is empty |
|
Nothing should happen as the input is empty | Passed |
2. | Nothing should happen if the user clicks on edit when the task is already in edit mode |
|
Nothing should happen | Passed |
3. | Height of the task display area varies accordingly when a new task is added/ deleted |
|
Height of the display area increases with adding more tasks, and decreases till minimum height when the tasks are deleted | Passed |
4. | New row should be added when users enters the input and clicks "add" or presses "enter" |
|
New row should be added at the end of the list | Passed |
5. | Every task is editable |
|
Task is updated with edited text | Passed |
6. | Every task should be deletable |
|
Task is deleted | Passed |
7. | A task should be striked off when the check box is checked |
|
Task is striked off | Passed |
- Common message can be displayed on the UI for any erros
- input can be lighlighted with red or an error message can be displayed when the text input is empty, nothing happens in current implementation
- Can be connected to server and user registration/ saving user's data can be implemented by extending the paplication