fix i18n
This commit is contained in:
parent
8a59985180
commit
50502baea7
@ -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 {
|
||||
|
@ -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')))
|
||||
|
Loading…
Reference in New Issue
Block a user