Skip to content

Commit 9b1ca7c

Browse files
committed
feat: fix conflict
2 parents 67fb9b4 + b543986 commit 9b1ca7c

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

frontend/tests/unit/components/JobsHeaderCard.test.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,23 @@ vi.mock("@/hooks/useTheme", () => ({
77
}));
88

99
describe("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(/painel de vagas/i)
15-
).toBeInTheDocument();
16-
17-
// texto quebrado + acento corrigido
18-
expect(
19-
screen.getByText(/leitura automática dos arquivos/i)
20-
).toBeInTheDocument();
13+
expect(screen.getByAltText("Painel de Vagas")).toBeInTheDocument();
2114

2215
expect(
23-
screen.getByText(/xlsx gerados em output/i)
16+
screen.getByText(/leitura automática dos arquivos.*xlsx gerados em output/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: /ativar tema escuro/i,
3225
});
3326

34-
expect(buttons.length).toBeGreaterThan(0);
27+
expect(buttons).toHaveLength(2);
3528
});
3629
});

0 commit comments

Comments
 (0)