Fakultas Ilmu Komputer UI

Commit 3eba2f90 authored by Zafir Rasyidi Taufik's avatar Zafir Rasyidi Taufik
Browse files

[GREEN] Passed test that failed after polishing

parent 5ee49c44
Pipeline #82121 failed with stage
in 1 minute and 49 seconds
...@@ -80,7 +80,7 @@ it('renders correctly', () => { ...@@ -80,7 +80,7 @@ it('renders correctly', () => {
const jenisKontakField = instance.root.find(elem => elem.props.name === "Jenis Kontak"); const jenisKontakField = instance.root.find(elem => elem.props.name === "Jenis Kontak");
expect(jenisKontakField).toBeTruthy(); expect(jenisKontakField).toBeTruthy();
expect(kelurahanField.props.value).toBe(KELURAHAN_VALUES[0].value); expect(kelurahanField.props.value).toBe(KELURAHAN_VALUES[KECAMATAN_VALUES[0].value]);
expect(kecamatanField.props.value).toBe(KECAMATAN_VALUES[0].value); expect(kecamatanField.props.value).toBe(KECAMATAN_VALUES[0].value);
expect(jenisKontakField.props.value).toBe(JENIS_KONTAK_VALUES[0].value); expect(jenisKontakField.props.value).toBe(JENIS_KONTAK_VALUES[0].value);
}); });
......
...@@ -97,7 +97,7 @@ const ContactInvestigationFormStep2 = () => { ...@@ -97,7 +97,7 @@ const ContactInvestigationFormStep2 = () => {
setField("sub_district", case_subject.sub_district) setField("sub_district", case_subject.sub_district)
setField("case_relation", case_relation) setField("case_relation", case_relation)
} else { } else {
setField("sub_district", KELURAHAN_VALUES[0]) setField("sub_district", KELURAHAN_VALUES[KECAMATAN_VALUES[0].value])
setField("district", KECAMATAN_VALUES[0].value) setField("district", KECAMATAN_VALUES[0].value)
setField("case_relation", JENIS_KONTAK_VALUES[0].value) setField("case_relation", JENIS_KONTAK_VALUES[0].value)
} }
......
Supports Markdown
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