File tree Expand file tree Collapse file tree
frontend/tests/unit/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,30 +7,23 @@ vi.mock("@/hooks/useTheme", () => ({
77} ) ) ;
88
99describe ( "JobsHeaderCard" , ( ) => {
10- it ( "renderiza logo acessivel e descricao " , ( ) => {
10+ it ( "renderiza logo acessível e descrição " , ( ) => {
1111 render ( < JobsHeaderCard /> ) ;
1212
13- expect (
14- screen . getByAltText ( / p a i n e l d e v a g a s / i)
15- ) . toBeInTheDocument ( ) ;
16-
17- // texto quebrado + acento corrigido
18- expect (
19- screen . getByText ( / l e i t u r a a u t o m á t i c a d o s a r q u i v o s / i)
20- ) . toBeInTheDocument ( ) ;
13+ expect ( screen . getByAltText ( "Painel de Vagas" ) ) . toBeInTheDocument ( ) ;
2114
2215 expect (
23- screen . getByText ( / x l s x g e r a d o s e m o u t p u t / i)
16+ screen . getByText ( / l e i t u r a a u t o m á t i c a d o s a r q u i v o s . * x l s x g e r a d o s e m o u t p u t / i)
2417 ) . toBeInTheDocument ( ) ;
2518 } ) ;
2619
27- it ( "renderiza o botao de alternar tema" , ( ) => {
20+ it ( "renderiza o botão de alternar tema" , ( ) => {
2821 render ( < JobsHeaderCard /> ) ;
2922
3023 const buttons = screen . getAllByRole ( "button" , {
3124 name : / a t i v a r t e m a e s c u r o / i,
3225 } ) ;
3326
34- expect ( buttons . length ) . toBeGreaterThan ( 0 ) ;
27+ expect ( buttons ) . toHaveLength ( 2 ) ;
3528 } ) ;
3629} ) ;
You can’t perform that action at this time.
0 commit comments