Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ The code and suggestions generated with ChatGPT were adapted to fit our applicat
8. Use the Spotify link to open the song directly in Spotify.

## Testing
We created automated tests using **Vitest** and **React Testing Library** to verify some of the main functionality
in the application.

The tests cover:
- Adding and removing favorite tracks, including saving them in 'localStorage'
- Search input and clearing the search field
- Filter interactions
- Playing and pausing track previews
- Spotify links and URI conversion
- Spotify API requests, returned data, and error handling
- Track card interaction and active state
- Snapshot testing for the search bar

External API requests are mocked in the tests so they can run without depending on Spotify being available.

## How we used AI
We mainly used ChatGPT when working on the user interface of the application.
Expand Down