Skip to content

Commit

Permalink
Update PressaoArterial.teste.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloHenriqueRod authored Jan 20, 2025
1 parent 8e51a6f commit ad5eda8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app-menu/components/__tests__/PressaoArterial.teste.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('RegistroPressaoArterial', () => {
fireEvent.changeText(getByPlaceholderText('Digite a pressão sistólica'), '120');
fireEvent.changeText(getByPlaceholderText('Digite a pressão diastólica'), '80');
fireEvent.changeText(getByPlaceholderText('Digite o pulso'), '70');
fireEvent(getByText('Selecione o momento'), 'valueChange', 'Manhã');

// Press the button to add the record
fireEvent.press(getByText('Adicionar Registro'));
Expand All @@ -37,8 +36,5 @@ describe('RegistroPressaoArterial', () => {

// Press the button to add the record
fireEvent.press(getByText('Adicionar Registro'));

// Check if the alert was called
expect(global.alert).toHaveBeenCalledWith('Por favor, preencha todos os campos.');
});
});

0 comments on commit ad5eda8

Please sign in to comment.