Skip to content

Commit

Permalink
fix: password reset error text [DHIS2-17960] (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp authored Aug 28, 2024
1 parent 7269357 commit ca03b25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-07-23T11:23:34.551Z\n"
"PO-Revision-Date: 2024-07-23T11:23:34.551Z\n"
"POT-Creation-Date: 2024-08-28T07:47:39.528Z\n"
"PO-Revision-Date: 2024-08-28T07:47:39.528Z\n"

msgid "Please confirm that you are not a robot by checking the checkbox."
msgstr "Please confirm that you are not a robot by checking the checkbox."
Expand Down Expand Up @@ -145,8 +145,8 @@ msgstr "Incorrect authentication code"
msgid "Password expired"
msgstr "Password expired"

msgid "You can reset your from the password reset page."
msgstr "You can reset your from the password reset page."
msgid "You can reset your password from the password reset page."
msgstr "You can reset your password from the password reset page."

msgid "Contact your system administrator."
msgstr "Contact your system administrator."
Expand Down
6 changes: 3 additions & 3 deletions src/pages/__tests__/login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ describe('LoginForm', () => {
expect(screen.getByText('Password expired')).toBeInTheDocument()
expect(
screen.getByRole('link', {
name: 'You can reset your from the password reset page.',
name: 'You can reset your password from the password reset page.',
})
).toHaveAttribute('href', '/reset-password')
})
Expand All @@ -315,7 +315,7 @@ describe('LoginForm', () => {
expect(screen.getByText('Password expired')).toBeInTheDocument()
expect(
screen.queryByRole('link', {
name: 'You can reset your from the password reset page.',
name: 'You can reset your password from the password reset page.',
})
).not.toBeInTheDocument()
})
Expand All @@ -336,7 +336,7 @@ describe('LoginForm', () => {
expect(screen.getByText('Password expired')).toBeInTheDocument()
expect(
screen.queryByRole('link', {
name: 'You can reset your from the password reset page.',
name: 'You can reset your password from the password reset page.',
})
).not.toBeInTheDocument()
})
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const LoginErrors = ({
{passwordResetEnabled ? (
<Link to="/reset-password">
{i18n.t(
'You can reset your from the password reset page.'
'You can reset your password from the password reset page.'
)}
</Link>
) : (
Expand Down

0 comments on commit ca03b25

Please sign in to comment.