Test navigation bar in different aspects:
Tests for Navigation: Each test checks if clicking on a specific link correctly navigates to the corresponding route.
each test:
Initializes the router.
Starts from the home page.
Finding the link using its ID.
Triggers a click.
Pushes the corresponding route.
Verifies the current route path.
Dropdown Behavior: Tests the visibility of the dropdown menu and interaction with its links.
Link Existence: Validates that all expected links are rendered in the navbar.
Login Event Emission: Confirms the event emission when the login button is clicked.
Test navigation bar in different aspects: Tests for Navigation: Each test checks if clicking on a specific link correctly navigates to the corresponding route. each test:
Dropdown Behavior: Tests the visibility of the dropdown menu and interaction with its links. Link Existence: Validates that all expected links are rendered in the navbar. Login Event Emission: Confirms the event emission when the login button is clicked.