Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-812

Add tests for playlist feature React components

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The playlist components (https://github.com/metabrainz/listenbrainz-server/tree/master/listenbrainz/webserver/static/js/src/playlists) were created during a hackweek and lack any form of tests.

      At least the Playlists, Playlist and PlaylistItemCard components (the two main pages) should have solid tests emulating user actions (edit playlist, add/move/delete track, create/delete playlist, user allowed or not to edit, etc. ) and ensuring the state was changed accordingly and the API calls are what we expect.

      The utils can get simple unit tests and should test robustness by throwing the util functions various inputs

        Attachments

          Activity

            People

            Assignee:
            dpmittal Divya Prakash Mittal
            Reporter:
            mr_monkey Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package