Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
IT Project 2020
Group B
pilar-web
Commits
df7afa7e
Commit
df7afa7e
authored
Nov 10, 2020
by
Wan Muhammad Rayhan Arwindra
🤸🏽
Browse files
Merge branch 'PBI-6-Ray' into 'staging'
Pbi 6 ray See merge request
!92
parents
ce1f90c9
7b57b11b
Pipeline
#60434
passed with stages
in 12 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/__test__/program/EditProgram.test.js
View file @
df7afa7e
...
...
@@ -92,7 +92,6 @@ test("Test edit program renders error", async () => {
});
expect
(
fetch
.
mock
.
calls
.
length
).
toEqual
(
3
);
});
test
(
"
Test progress program modal
"
,
async
()
=>
{
fetch
.
once
(
JSON
.
stringify
({
...
...
@@ -184,5 +183,4 @@ test("Test progress program modal submit", async () => {
await
fireEvent
.
submit
(
getByTestId
(
"
save-button
"
));
});
expect
(
fetch
.
mock
.
calls
.
length
).
toEqual
(
0
);
});
});
\ No newline at end of file
src/page/program/DetailProgram.jsx
View file @
df7afa7e
...
...
@@ -367,61 +367,62 @@ const DetailProgram = ({ idProgram }) => {
</
div
>
</
div
>
</
div
>
<
div
css
=
{
css
`
margin-top: 1rem;
margin-bottom: 1rem;
`
}
>
<
div
>
<
div
css
=
{
css
`
margin-top: 1rem;
`
}
>
<
div
css
=
{
css
`
margin-top: 2rem;
margin-bottom: 1rem;
font-style: normal;
font-weight: normal;
font-size: 24px;
line-height: 22px;
`
}
data-testid
=
"progress"
>
Progress Program
{
progressError
&&
<
ErrorDiv
>
Error, progress not found.
</
ErrorDiv
>
}
{
progress
.
length
>
0
?
<
div
>
{
progress
.
map
(
p
=>
<
div
key
=
{
p
.
id
}
css
=
{
css
`margin-top: 1rem; font-size: 18px`
}
>
<
p
data-testid
=
"progress-date"
>
{
p
.
date
}
</
p
>
<
p
>
{
p
.
description
}
</
p
>
{
p
.
image
!==
null
&&
<
Button
onClick
=
{
()
=>
handleClickOpen
(
p
.
image
)
}
variant
=
"contained"
color
=
"primary"
size
=
"medium"
data-testid
=
"button-see-proof"
>
Gambar
</
Button
>
}
</
div
>
)
}
</
div
>
:<
div
css
=
{
css
`margin-top: 1rem ; font-size: 18px`
}
>
Belum ada progress
</
div
>
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
css
=
{
css
`
margin-top: 1rem;
margin-bottom: 1rem;
`
}
>
<
div
>
<
div
css
=
{
css
`
margin-top: 1rem;
`
}
>
<
div
css
=
{
css
`
margin-top: 2rem;
margin-bottom: 1rem;
font-style: normal;
font-weight: normal;
font-size: 24px;
line-height: 22px;
margin-left: 70px;
`
}
data-testid
=
"progress"
>
Progress Program
{
progressError
&&
<
ErrorDiv
>
Error, progress not found.
</
ErrorDiv
>
}
{
progress
.
length
>
0
?
<
div
>
{
progress
.
map
(
p
=>
<
div
key
=
{
p
.
id
}
css
=
{
css
`margin-top: 1rem; font-size: 18px`
}
>
<
p
data-testid
=
"progress-date"
>
{
p
.
date
}
</
p
>
<
p
>
{
p
.
description
}
</
p
>
{
p
.
image
!==
null
&&
<
Button
onClick
=
{
()
=>
handleClickOpen
(
p
.
image
)
}
variant
=
"contained"
color
=
"primary"
size
=
"medium"
data-testid
=
"button-see-proof"
>
Gambar
</
Button
>
}
</
div
>
)
}
</
div
>
:<
div
css
=
{
css
`margin-top: 1rem ; font-size: 18px`
}
>
Belum ada progress
</
div
>
}
</
div
>
</
div
>
</
div
>
</
div
>
<
Dialog
maxWidth
=
"xl"
open
=
{
dialogOpen
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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