Skip to content

Frontend Unit Tests

oguzpancuk edited this page Dec 20, 2024 · 1 revision

1. AlertModal.test.js

  • Purpose: Tests the AlertModal component.
  • Key Features:
    • Verifies modal rendering and interaction.
    • Includes event simulation like opening and closing the modal.

2. NotFound.test.js

  • Purpose: Tests the NotFound page.
  • Key Features:
    • Ensures proper rendering of the 404 error page.
    • Uses MemoryRouter to simulate routing behavior.

3. FilterButtons.test.js

  • Purpose: Tests the FilterButtons component.
  • Key Features:
    • Checks rendering of filter buttons with dynamic categories.
    • Simulates button clicks and ensures correct callbacks.

4. CircleAnimation.test.js

  • Purpose: Tests the CircleAnimation component.
  • Key Features:
    • Verifies animation rendering and event handling.

5. randomUtil.test.js

  • Purpose: Tests utility functions in randomUtil.
  • Key Features:
    • Ensures consistent behavior of random number generation with seeds.
    • Uses seedrandom for reproducibility.

6. UserCard.test.js

  • Purpose: Tests the UserCard component.
  • Key Features:
    • Verifies user information display.
    • Includes mock navigation and service interactions.

7. AssetModal.test.js

  • Purpose: Tests the AssetModal component.
  • Key Features:
    • Simulates user actions like form input and submission.
    • Mocks external services like StockService.

8. NewsCard.test.js

  • Purpose: Tests the NewsCard component.
  • Key Features:
    • Ensures correct rendering of news items with mock data.
    • Simulates user interactions like clicks.

9. ProfilePage.test.js

  • Purpose: Tests the ProfilePage component.
  • Key Features:
    • Includes navigation, rendering, and service mocks.
    • Simulates user actions on the profile page.

10. AssetList.test.js

  • Purpose: Tests the AssetList component.
  • Key Features:
    • Verifies list rendering with various assets.
    • Mocks alert modal for error and success handling.

11. PortfolioDetailsCard.test.js

  • Purpose: Tests the PortfolioDetailsCard component.
  • Key Features:
    • Includes animations and component interactions.
    • Mocks dependent components like CircleAnimation.

12. PortfolioModal.test.js

  • Purpose: Tests the PortfolioModal component.
  • Key Features:
    • Simulates user actions like closing the modal or form submission.
    • Tests callbacks for interactions.

📋 Lab Reports

📆 Meeting Notes

🧪 Lab Meetings

🗓️ General Meetings

⚙️ Backend Meetings

📝 Milestone Reports

📑 Project Artifacts

📖 Manuals

📑 Other Artifacts

📋 Software Requirements Specification

📊 Software Design Documents

✏️ User Scenarios & Mockups

🗂 Project Plan

🧪 Unit Tests

📜 Docs

👥 Team

SemanticFlix Archieve

📝 Milestone Reports

📆 Meeting Notes

🧾 Requirements

Project Plan

📊 Diagrams

👥 Team

📝 Researches

Repository Documentations

📁 Templates

Clone this wiki locally