Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions frontend/tests/unit/components/JobsHeaderCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,23 @@ vi.mock("@/hooks/useTheme", () => ({
}));

describe("JobsHeaderCard", () => {
it("renderiza logo acessivel e descricao", () => {
it("renderiza logo acessível e descrição", () => {
render(<JobsHeaderCard />);

expect(
screen.getByAltText(/painel de vagas/i)
).toBeInTheDocument();

// texto quebrado + acento corrigido
expect(
screen.getByText(/leitura automática dos arquivos/i)
).toBeInTheDocument();
expect(screen.getByAltText("Painel de Vagas")).toBeInTheDocument();

expect(
screen.getByText(/xlsx gerados em output/i)
screen.getByText(/leitura automática dos arquivos.*xlsx gerados em output/i)
).toBeInTheDocument();
});

it("renderiza o botao de alternar tema", () => {
it("renderiza o botão de alternar tema", () => {
render(<JobsHeaderCard />);

const buttons = screen.getAllByRole("button", {
name: /ativar tema escuro/i,
});

expect(buttons.length).toBeGreaterThan(0);
expect(buttons).toHaveLength(2);
});
});
Loading