diff --git a/src/components/Footer/Footer.test.tsx b/src/components/Footer/Footer.test.tsx
index 207a5de..f3b1ba8 100644
--- a/src/components/Footer/Footer.test.tsx
+++ b/src/components/Footer/Footer.test.tsx
@@ -2,7 +2,7 @@ import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import Footer from './index';
-describe('Component Footer', () => {
+describe('👢 - Component Footer', () => {
it('o texto "Tecnologias" deve ser exibido na tela', () => {
render();
const text = screen.getByText(/Tecnologias/i);
diff --git a/src/components/Loading/Loading.test.tsx b/src/components/Loading/Loading.test.tsx
index 53b20cb..557d4a5 100644
--- a/src/components/Loading/Loading.test.tsx
+++ b/src/components/Loading/Loading.test.tsx
@@ -2,7 +2,7 @@ import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import Loading from './index';
-describe('Component Loading', () => {
+describe('⏳ - Component Loading', () => {
it('o texto "Carregando" deve ser exibido na tela', () => {
render();
const loadingText = screen.getByText(/Carregando/i);
diff --git a/src/components/Navbar/NavBar.test.tsx b/src/components/Navbar/NavBar.test.tsx
new file mode 100644
index 0000000..0545572
--- /dev/null
+++ b/src/components/Navbar/NavBar.test.tsx
@@ -0,0 +1,68 @@
+import { render, screen } from '@testing-library/react';
+import { MemoryRouter, Route, Routes } from 'react-router-dom'; // Importa o MemoryRouter
+import Navbar from './Navbar';
+import styles from './navbar.module.css';
+
+describe('🍔 - Menu testes', () => {
+
+ it('Renderiza container com lista de itens de menu', () => {
+ // Envolve o componente Navbar com o MemoryRouter
+ render(
+
+
+
+ );
+
+ const containerNav = screen.getByRole('navigation');
+
+ expect(containerNav).toBeInTheDocument();
+ expect(containerNav).toHaveClass(styles.container_nav_link);
+ });
+
+ it('Renderiza no mínimo um item de menu', () => {
+ render(
+
+
+
+ );
+
+ const navLinkElements = screen.getAllByRole('link');
+ const navLinkElement = navLinkElements[0];
+
+ expect(navLinkElements.length).toBeGreaterThan(0);
+
+ expect(navLinkElement).toBeInTheDocument();
+ expect(navLinkElement).toHaveClass(styles.nav_link);
+ });
+
+ it('Inicia com a classe "ativo" na rota principal', () => {
+ render(
+
+
+ } />
+
+
+ );
+
+ const homeLink = screen.getByTestId('link-home');
+ expect(homeLink).toHaveClass(styles.active);
+ });
+
+ it('Verifica se o link "home" esta inativo quando outra rota é acessada', () => {
+
+ render(
+
+
+ } />
+
+
+ );
+
+
+ const navLinkElements = screen.getAllByRole('link');
+ const homeLink = navLinkElements[0];
+
+ expect(homeLink).not.toHaveClass(styles.active);
+ expect(navLinkElements[1]).toHaveClass(styles.active)
+ });
+});
diff --git a/src/components/Navbar/Navbar.tsx b/src/components/Navbar/Navbar.tsx
index 820fdad..3105524 100644
--- a/src/components/Navbar/Navbar.tsx
+++ b/src/components/Navbar/Navbar.tsx
@@ -2,11 +2,22 @@ import styles from './navbar.module.css';
import { NavLink } from 'react-router-dom';
function Navbar() {
return (
-