Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Mobile
Commits
7643e3f1
Commit
7643e3f1
authored
Jun 06, 2021
by
wulanmantiri
Browse files
[REFACTOR] Remove unnecessary tests
parent
fb80bff3
Pipeline
#81644
passed with stages
in 15 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/scenes/report/WeeklyReport/index.test.tsx
View file @
7643e3f1
...
...
@@ -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
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment