Skip to content

Commit

Permalink
Correção erro test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoFAmaral committed Dec 9, 2024
1 parent 666b4a6 commit 1ce7a49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pages/Public/MemberShip/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ describe("MemberShip Component", () => {
</BrowserRouter>
);

// 27 Entradas (não contando datas) antes da abertura do formulario de dependente
// antesMerge(82) 27 - depoisMerge(82) 28 Entradas (não contando datas) antes da abertura do formulario de dependente
let inputs = container.querySelectorAll(".MuiFilledInput-input");
expect(inputs).toHaveLength(27);
expect(inputs).toHaveLength(28);

// Clicar no botão para abrir
const icon = screen.getByTestId("AddCircleOutlineIcon");
Expand All @@ -322,7 +322,7 @@ describe("MemberShip Component", () => {

// Verificar os novos campos (4 novos + 1 de Data)
inputs = container.querySelectorAll(".MuiFilledInput-input");
expect(inputs).toHaveLength(31);
expect(inputs).toHaveLength(32); //mudou de 31 no merge(82)

//Selecionar ultimas entradas
inputs = Array.from(inputs).slice(-4);
Expand Down

0 comments on commit 1ce7a49

Please sign in to comment.