Skip to content

Commit

Permalink
test[Contador]: Corrige método de teste alterado.
Browse files Browse the repository at this point in the history
Refs: #29
  • Loading branch information
DanielViniciusAlves committed Aug 18, 2024
1 parent f83f7bf commit 0b4946a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tests/pages/AddContador.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ describe("AddContador", () => {
);

expect(screen.getByText("Registro de Contadores")).toBeInTheDocument();
expect(screen.getByLabelText("Cidade")).toBeInTheDocument();
expect(screen.getByLabelText("Regional")).toBeInTheDocument();
expect(screen.getByLabelText("Unidade")).toBeInTheDocument();
expect(screen.getByLabelText("Equipamento Associado")).toBeInTheDocument();
expect(screen.getByTestId("cidade")).toBeInTheDocument();
expect(screen.getByTestId("regional")).toBeInTheDocument();
expect(screen.getByTestId("unidade")).toBeInTheDocument();
expect(screen.getByTestId("equipamento")).toBeInTheDocument();
expect(
screen.getByLabelText("Contador Preto e Branco")
).toBeInTheDocument();
Expand All @@ -82,7 +82,7 @@ describe("AddContador", () => {
</MemoryRouter>
);

fireEvent.change(screen.getByLabelText(/Cidade/i), {
fireEvent.change(screen.getByTestId("cidade"), {
target: { value: "City 1" },
});

Expand All @@ -109,7 +109,7 @@ describe("AddContador", () => {
expect(screen.getByText("XYZ123")).toBeInTheDocument();
});

fireEvent.change(screen.getByLabelText("Equipamento Associado"), {
fireEvent.change(screen.getByTestId("equipamento"), {
target: { value: "XYZ123" },
});

Expand Down

0 comments on commit 0b4946a

Please sign in to comment.