-
Notifications
You must be signed in to change notification settings - Fork 0
Test Cases
Alex Croft edited this page Jul 19, 2024
·
3 revisions
- TC001: User Profile Data for New Spotify Account
- TC002: Album Match Quiz for New Spotify Account
- TC003: User Account Not Registered in Spotify Developer Dashboard
- TC004: Multiple People Using Test Account at the Same Time
- TC005: Admin User Login and Access to User List
- TC006: Absent Listening History for top Tracks
- TC007: User View Quiz Total Score on harmonIQ
- TC008: No Active Users for Populating User List
- Test Case ID: TC001
- Title: User Profile Data for New Spotify Account
- Preconditions: User has just created a new Spotify account.
-
Test Data:
- New Spotify account with no listening history, no favorites, and no playlists.
-
Steps to Execute:
- Create a new Spotify account.
- Log in to the newly created account.
- Navigate to the user profile page.
-
Expected Results:
- Sections for listening history, favorites, and playlists should indicate that there is no data available.
- Suggestions for adding favorites or exploring playlists may be provided.
- Test Case ID: TC002
- Title: Album Match Quiz for New Spotify Account
- Preconditions: User has just created a new Spotify account.
-
Test Data:
- New Spotify account with no top tracks.
-
Steps to Execute:
- Create a new Spotify account.
- Log in to the newly created account.
- Navigate to the Album Match Quiz page.
- Attempt to play the quiz
-
Expected Results:
- Quiz should indicate that the user has no top tracks to generate questions from.
- Suggestions for user to explore playlist in order to generate listening history.
- Test Case ID: TC003
- Title: User Account Not Registered in Spotify Developer Dashboard
- Preconditions: harmonIQ has not been green-lit by Spotify yet, & user's account is not registered in the Spotify Developer Dashboard.
-
Test Data:
- Spotify account not registered in the developer dashboard.
-
Steps to Execute:
- Log in to the user account.
- Attempt to access a feature that requires registration in the Spotify Developer Dashboard.
-
Expected Results:
- An error message should be displayed indicating that the account is not registered in the Spotify Developer Dashboard.
- Guidance on how to register the account in the Spotify Developer Dashboard should be provided.
- Test Case ID: TC004
- Title: Multiple People Using Test Account at the Same Time
- Preconditions: More than one person is logged into harmonIQ on the test account at the same time.
-
Test Data:
- Singular Spotify account with multiple users.
-
Steps to Execute:
- One person signs into harmonIQ under the test account.
- Another user signs into harmonIQ under the test account before the previous person has signed out.
- Both users try to use harmonIQ functionality at the same time.
-
Expected Results:
- An error message should display that multiple people are attempting to use the account at the same time and log all users out of the test account.
-
Test Case ID: TC005
-
Title: Admin User Login and Access to User List
-
Preconditions: User is an administrative user on harmonIQ.
-
Test Data:
- Admin harmonIQ account with admin privileges.
-
Steps to Execute:
- Ensure the user has an admin harmonIQ account.
- Navigate to the harmonIQ login page.
- Click the "Sign in With Spotify" button.
- Check if the user has logged in recently.
- If true, proceed to step 6.
- If false, proceed to step 7.
- Verify the user is automatically redirected to their admin harmonIQ profile page.
- Verify the user is prompted by Spotify to sign in using their Spotify account credentials.
- Authenticate with Spotify.
- Verify the user is redirected to their admin harmonIQ profile page.
-
Expected Results:
- If the user has logged in recently:
- The user should be automatically redirected to their admin harmonIQ profile page.
- The admin profile page should display admin-only features, such as the user list.
- If the user has not logged in recently:
- The user should be prompted to sign in with Spotify.
- Upon authentication, the user should be redirected to their admin harmonIQ profile page.
- The admin profile page should display admin-only features, such as the user list.
- If the user's account does not have admin privileges:
- The user should receive instructions to reach out to the development team to apply for admin privileges.
- If the user has logged in recently:
- Test Case ID: TC006
- Title: Absent Listening History for top Tracks.
- Preconditions: User has a Spotify account linked with harmonIQ.
-
Test Data:
- Regular Spotify account.
- harmonIQ user profile linked to Spotify account.
-
Steps to Execute:
- Ensure the user has a Spotify account linked with harmonIQ.
- Navigate to the harmonIQ login page.
- Log in to harmonIQ using the "Sign in With Spotify" button.
- Check if the user has a listening history with their Spotify account.
- If true, proceed to step 5.
- If false, proceed to step 6.
- Verify that the top tracks are pulled from Spotify and displayed on the user's harmonIQ profile.
- Verify that the top tracks section of the user's profile is empty and includes a message indicating that there is no listening history yet.
-
Expected Results:
- If the user has a listening history:
- The user's top tracks should be pulled from Spotify and displayed on their harmonIQ profile.
- If the user does not have a listening history:
- The Top tracks section of the user's profile should be empty.
- A message should be displayed indicating that there is no listening history available yet.
- If the user has a listening history:
- Test Case ID: TC007
- Title: User View Quiz Total Score on harmonIQ.
-
Test Data:
- Regular harmonIQ Account.
- harmonIQ user profile with and without quiz history.
-
Steps to Execute:
- Ensure the user has a harmonIQ account.
- Navigate to the harmonIQ login page.
- Log in to harmonIQ using the "Sign in With Spotify" button.
- Check if the user has played at least 1 quiz. - If true, proceed to step 5. - If false, proceed to step 6.
- Navigate to the user's profile page and verify that the harmonIQ quiz total score is displayed among other statistics and information.
- Navigate to the user's profile page and verify that the harmonIQ quiz total score is defaulted to 0, with a message indicating that they need to play at least 1 quiz to have a score.
- Expected Results:
- If the user has played at least 1 quiz:
- The user's harmonIQ quiz total score should be displayed on their profile among other statistics and information.
- If the user has not played any quizzes:
- The user's harmonIQ quiz total score should be defaulted to 0.
- A message should be displayed indicating that the user needs to play at least 1 quiz to have a score.
- Test Case ID: TC008
- Title: No Active Users for Populating User List.
- Preconditions: User is an administrator on harmonIQ.
-
Test Data:
- Admin harmonIQ account.
- harmonIQ user profiles (both with and without other active users).
-
Steps to Execute:
- Ensure the user has an admin harmonIQ account.
- Navigate to the harmonIQ login page.
- Log in to harmonIQ using the "Sign in With Spotify" button.
- Navigate to the admin user's profile page and verify that the list of all other active users, as well as other admin-only information, is displayed.
-
Expected Results:
- If there is at least 1 other active user:
- The admin should see that users information in the User-Table, viewable only by admins.
- If there are no active users:
- The user list should be empty.
- A message should be displayed indicating that there are no active users on harmonIQ.
- If there is at least 1 other active user: