mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Cover forgot password with e2e tests
This commit is contained in:
@@ -298,7 +298,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
|
||||
</Panel>
|
||||
<div
|
||||
className={helpLinksStyles}
|
||||
data-testid="auth-secondary-controls"
|
||||
data-testid="auth-controls-secondary"
|
||||
>
|
||||
{panels.map(config => this.getLinks(config))}
|
||||
</div>
|
||||
|
@@ -48,10 +48,14 @@ export default class ForgotPasswordBody extends BaseAuthBody {
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
<div data-testid="forgot-password-login">
|
||||
<div className={styles.login}>
|
||||
{login}
|
||||
<span className={styles.editLogin} onClick={this.onClickEdit} />
|
||||
<span
|
||||
className={styles.editLogin}
|
||||
onClick={this.onClickEdit}
|
||||
data-testid="edit-login"
|
||||
/>
|
||||
</div>
|
||||
<p className={styles.descriptionText}>
|
||||
<Message {...messages.pleasePressButton} />
|
||||
|
@@ -58,7 +58,7 @@ export class ContactForm extends React.Component<
|
||||
|
||||
return (
|
||||
<div
|
||||
data-e2e="feedbackPopup"
|
||||
data-testid="feedbackPopup"
|
||||
className={
|
||||
isSuccessfullySent ? styles.successState : styles.contactForm
|
||||
}
|
||||
@@ -71,6 +71,7 @@ export class ContactForm extends React.Component<
|
||||
<span
|
||||
className={clsx(icons.close, popupStyles.close)}
|
||||
onClick={onClose}
|
||||
data-testid="feedback-popup-close"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user