How to Test Favorites on Web (Complete Guide)

Testing favorites functionality in Web apps is crucial to ensure a seamless user experience. Favorites allow users to save items for later, such as products, articles, or videos, making it easier for

June 26, 2026 · 3 min read · How-To Guides

Why Favorites Testing Matters

Testing favorites functionality in Web apps is crucial to ensure a seamless user experience. Favorites allow users to save items for later, such as products, articles, or videos, making it easier for them to access and engage with content. However, common failures in favorites functionality can lead to frustrated users, abandoned carts, and ultimately, lost revenue. Some common issues include:

These issues can have a significant impact on user experience, especially for power users who rely heavily on favorites to manage their content.

What to Test

When testing favorites, consider the following specific test cases:

+ Add and remove items from favorites

+ Verify favorites are saved and loaded correctly

+ Check favorites are sorted correctly (e.g., alphabetically, by date added)

+ Attempt to add an item to favorites that is already favorited

+ Try to remove an item from favorites that is not favorited

+ Add and remove favorites while offline or with a slow internet connection

+ Favorite an item with a long or special character title

+ Favorite an item with a large image or video

+ Favorite an item that is no longer available (e.g., deleted, out of stock)

+ Verify favorites can be accessed using keyboard navigation

+ Check favorites have a clear and consistent label (e.g., "Favorite", "Unfavorite")

+ Ensure favorites are announced correctly by screen readers

+ Test favorites across different browsers and devices

+ Verify favorites are retained after logging out and logging back in

+ Check favorites are updated correctly when an item's details change (e.g., price, description)

Manual Testing Approach

To manually test favorites, follow these steps:

  1. Setup: Create a test account and log in to the Web app.
  2. Add items to favorites: Browse the app and add several items to favorites, including items with different titles, images, and videos.
  3. Verify favorites: Check that the items are saved and loaded correctly in the favorites section.
  4. Remove items from favorites: Remove some of the items from favorites and verify they are no longer listed.
  5. Test error scenarios: Attempt to add an item to favorites that is already favorited, and try to remove an item from favorites that is not favorited.
  6. Test edge cases: Favorite an item with a long or special character title, and favorite an item with a large image or video.
  7. Test accessibility: Use keyboard navigation to access favorites, and check that favorites have a clear and consistent label.

Automated Testing Approach

To automate favorites testing, you can use tools like Playwright or Selenium. Here's an example using Playwright:


const { test, expect } = require('@playwright/test');

test('add and remove favorites', async ({ page }) => {
  // Log in to the app
  await page.goto('https://example.com/login');
  await page.fill('input[name="username"]', 'username');
  await page.fill('input[name="password"]', 'password');
  await page.click('button[type="submit"]');

  // Add an item to favorites
  await page.goto('https://example.com/item/1');
  await page.click('button.favorite');

  // Verify the item is saved in favorites
  await page.goto('https://example.com/favorites');
  await expect(page.locator('text="Item 1"')).toBeVisible();

  // Remove the item from favorites
  await page.click('button.unfavorite');

  // Verify the item is no longer in favorites
  await page.goto('https://example.com/favorites');
  await expect(page.locator('text="Item 1"')).not.toBeVisible();
});

You can also use CI/CD tools like GitHub Actions to run automated tests on every push to the repository.

How SUSA Tests Favorites Autonomously

SUSA, an autonomous QA platform, can test favorites on Web apps using its curious, impatient, and power user personas. These personas can catch issues like:

SUSA can also test accessibility considerations for favorites, such as keyboard navigation and screen reader announcements, using its accessibility persona. Additionally, SUSA's cross-session learning feature allows it to get smarter about the app's favorites functionality every run, enabling it to catch more issues and provide more accurate results. With SUSA, you can ensure your Web app's favorites functionality is thoroughly tested and provides a seamless user experience.

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free