The goal of this coding exam is to quickly get you off the ground with Lists and Keys
Click to view
Click to view
- Download dependencies by running
npm install
- Start up the app using
npm start
Functionality to be added
The app must have the following functionalities
-
Initially, the list of given track items should be displayed with a delete button for each track item
-
When a non-empty value with key
name
from theinitialTracksList
provided in the search input then display the track items which includes the search input irrespective of case -
When the delete button of a track item is clicked, the respective track item should be deleted from the list of track items
-
When a non-empty value is provided in the search input element, and no track item includes the value given in the search input, then No Songs Found View should be displayed
-
When all track items are deleted, then No Songs Found View should be displayed
-
The App is provided with
initialTracksList
. It consists of a list of trackItem objects with the following properties in each trackItem objectKey Data Type id String imageUrl String name String genre String duration String
Click to view
The following instructions are required for the tests to pass
- The
imageUrl
in each track item should have alt as track - The delete button in the track item should have the
data-testid
as delete
Image URLs
Colors
Font-families
- Roboto
- All components you implement should go in the
src/components
directory.- Don't change the component folder names as those are the files being imported into the tests.