@@ -5,7 +5,6 @@ import { BrowserRouter } from 'react-router-dom';
55import * as ProjectAPI from '../../../API/Project' ;
66import * as CommentAPI from '../../../API/Comment' ;
77
8- // --- Mocks ---
98
109// Mock do hook useAuth
1110vi . mock ( '../../../API/AuthContext' , ( ) => ( {
@@ -102,7 +101,6 @@ describe('Componente Postcard', () => {
102101 it ( 'NÃO deve navegar se clicar em um botão interativo dentro do card' , ( ) => {
103102 render ( < BrowserRouter > < Postcard post = { mockPost as unknown as ProjectAPI . ProjectProps } showMenu = { true } /> </ BrowserRouter > ) ;
104103
105- // Clica no botão de menu (que está dentro do wrapper)
106104 fireEvent . click ( screen . getByTestId ( 'menu-btn' ) ) ;
107105
108106 // O menu deve abrir, mas a navegação NÃO deve ocorrer
@@ -126,7 +124,6 @@ describe('Componente Postcard', () => {
126124 fireEvent . click ( screen . getByTestId ( 'menu-btn' ) ) ;
127125 fireEvent . click ( screen . getByTestId ( 'delete-post-btn' ) ) ;
128126
129- // Botão de confirmação no modal (segundo botão "Excluir" na tela)
130127 const modalButtons = screen . getAllByText ( 'Excluir' ) ;
131128 fireEvent . click ( modalButtons [ modalButtons . length - 1 ] ) ;
132129
@@ -158,7 +155,6 @@ describe('Componente Postcard', () => {
158155
159156 fireEvent . click ( screen . getByTestId ( 'delete-post-btn' ) ) ;
160157
161- // Confirmação no Modal (o último botão "Excluir" está no modal)
162158 const buttons = screen . getAllByText ( 'Excluir' ) ;
163159 const confirmDeleteBtn = buttons [ buttons . length - 1 ] ;
164160 fireEvent . click ( confirmDeleteBtn ) ;
0 commit comments