This commit is contained in:
Asnxthaony 2020-05-18 12:25:22 +08:00
parent 8a59985180
commit 50502baea7
No known key found for this signature in database
GPG Key ID: 1D36B94AA9417589
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ const UsersManagement: React.FC = () => {
mode: 'prompt',
text: t('admin.newUserPassword'),
inputType: 'password',
placeholder: t('adminchangePassword'),
placeholder: t('admin.changePassword'),
})
password = value
} catch {

View File

@ -604,7 +604,7 @@ describe('update password', () => {
await waitFor(() => expect(fetch.get).toBeCalled())
fireEvent.click(getByText(t('admin.changePassword')))
fireEvent.input(getByPlaceholderText(t('adminchangePassword')), {
fireEvent.input(getByPlaceholderText(t('admin.changePassword')), {
target: { value: '123' },
})
fireEvent.click(getByText(t('general.confirm')))
@ -630,7 +630,7 @@ describe('update password', () => {
await waitFor(() => expect(fetch.get).toBeCalled())
fireEvent.click(getByText(t('admin.changePassword')))
fireEvent.input(getByPlaceholderText(t('adminchangePassword')), {
fireEvent.input(getByPlaceholderText(t('admin.changePassword')), {
target: { value: '123' },
})
fireEvent.click(getByText(t('general.confirm')))