diff --git a/.pa11yci-pr.conf.js b/.pa11yci-pr.conf.js index 7b459c84ab5..47540f4b6ef 100644 --- a/.pa11yci-pr.conf.js +++ b/.pa11yci-pr.conf.js @@ -74,7 +74,7 @@ var config = { "click element button[aria-label='Login button']", "wait for element [aria-label='Skip change password button'] to be visible", ], - threshold: 14, + threshold: 15, rootElement: '.main-view', }, { diff --git a/public/app/core/components/ForgottenPassword/ChangePassword.tsx b/public/app/core/components/ForgottenPassword/ChangePassword.tsx index f97de51947c..d24442a91e1 100644 --- a/public/app/core/components/ForgottenPassword/ChangePassword.tsx +++ b/public/app/core/components/ForgottenPassword/ChangePassword.tsx @@ -1,13 +1,14 @@ import React, { SyntheticEvent } from 'react'; import { selectors } from '@grafana/e2e-selectors'; -import { Tooltip, Form, Field, VerticalGroup, Button } from '@grafana/ui'; +import { Tooltip, Form, Field, VerticalGroup, Button, Alert } from '@grafana/ui'; import { submitButton } from '../Login/LoginForm'; import { PasswordField } from '../PasswordField/PasswordField'; interface Props { onSubmit: (pw: string) => void; onSkip?: (event?: SyntheticEvent) => void; + showDefaultPasswordWarning?: boolean; } interface PasswordDTO { @@ -15,7 +16,7 @@ interface PasswordDTO { confirmNew: string; } -export const ChangePassword = ({ onSubmit, onSkip }: Props) => { +export const ChangePassword = ({ onSubmit, onSkip, showDefaultPasswordWarning }: Props) => { const submit = (passwords: PasswordDTO) => { onSubmit(passwords.newPassword); }; @@ -23,6 +24,9 @@ export const ChangePassword = ({ onSubmit, onSkip }: Props) => {