Fakultas Ilmu Komputer UI

Commit 7643e3f1 authored by wulanmantiri's avatar wulanmantiri
Browse files

[REFACTOR] Remove unnecessary tests

parent fb80bff3
Pipeline #81644 passed with stages
in 15 minutes and 30 seconds
......@@ -166,28 +166,6 @@ describe('WeeklyReport', () => {
expect(mockedNavigate).toHaveBeenCalledTimes(1);
});
it('has disabled next button if any form values in that page are invalid', async () => {
const { getByText, getByPlaceholderText } = render(<WeeklyReport />);
dietReportTextFields.dietReportPage1.forEach(({ name, placeholder }) => {
const formField = getByPlaceholderText(placeholder as string);
fireEvent.changeText(formField, validFormValues[name]);
});
fireEvent.press(getByText(/Lanjut/i));
dietReportTextFields.dietReportPage2.forEach(({ name, placeholder }) => {
const formField = getByPlaceholderText(placeholder as string);
fireEvent.changeText(formField, validFormValues[name]);
});
fireEvent.press(getByText(/Lanjut/i));
expect(
getByText(
/Apakah sudah mulai terasa ada perubahan ukuran baju atau celana?/i,
),
).toBeTruthy();
});
afterAll(() => {
jest.clearAllMocks();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment