Fakultas Ilmu Komputer UI

Commit c06951ad authored by Lia Yuliana's avatar Lia Yuliana
Browse files

[RED] change Register test for phone number error message

parent 73b9944e
Pipeline #72116 failed with stages
in 4 minutes and 48 seconds
......@@ -80,7 +80,7 @@ test('register error if phone number not all the numbers', async () => {
fireEvent.click(daftarButton)
const phoneNumberNotAllNumber = await screen.findByText(
'Nomor Handphone harus berupa angka dan diawali dengan 08 atau 8',
'Nomor Handphone harus berupa angka',
)
expect(phoneNumberNotAllNumber).toBeVisible()
})
......@@ -116,7 +116,7 @@ test('register error if phone number does not start with 08 or 8', async () => {
fireEvent.click(daftarButton)
const phoneNumberNotStartWith08Or8 = await screen.findByText(
'Nomor Handphone harus berupa angka dan diawali dengan 08 atau 8',
'Nomor Handphone harus berupa angka',
)
expect(phoneNumberNotStartWith08Or8).toBeVisible()
})
......
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