Skip to content

nagachandu2003/Nxtwave-reactjs-mocktest-1A-3rd-question

Repository files navigation

The goal of this coding exam is to quickly get you off the ground with Lists and Keys

Refer to the image below:



Design Files

Click to view

Set Up Instructions

Click to view
  • Download dependencies by running npm install
  • Start up the app using npm start

Completion Instructions

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 the initialTracksList 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 object

    Key Data Type
    id String
    imageUrl String
    name String
    genre String
    duration String

Important Note

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

Resources

Image URLs
Colors
Hex: #152850
Hex: #cbd5e1
Hex: #ffffff
Hex: #3b82f6

Font-families
  • Roboto

Things to Keep in Mind

  • 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.

About

This is a static music playlist which involves in filtering and deleting of songs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published