-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snapshot to verify it is a FieldPassword
Signed-off-by: Derek Ho <[email protected]>
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
public/apps/configuration/utils/test/__snapshots__/password-edit-panel.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Password edit panel repeat password field update 1`] = ` | ||
<Fragment> | ||
<EuiFlexGroup | ||
direction="row" | ||
> | ||
<EuiFlexItem | ||
grow={false} | ||
> | ||
<FormRow | ||
headerText="Password" | ||
helpText="Password should be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character." | ||
> | ||
<EuiFieldPassword | ||
compressed={false} | ||
data-test-subj="password" | ||
fullWidth={false} | ||
isLoading={false} | ||
onChange={[Function]} | ||
type="dual" | ||
/> | ||
</FormRow> | ||
<EuiFormRow | ||
describedByIds={Array []} | ||
display="row" | ||
fullWidth={false} | ||
hasChildLabel={true} | ||
hasEmptyLabelSpace={false} | ||
labelType="label" | ||
> | ||
<PasswordStrengthBar | ||
password="" | ||
/> | ||
</EuiFormRow> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
<FormRow | ||
headerText="Re-enter password" | ||
helpText="The password must be identical to what you entered above." | ||
> | ||
<EuiFieldPassword | ||
compressed={false} | ||
data-test-subj="re-enter-password" | ||
fullWidth={false} | ||
isInvalid={false} | ||
isLoading={false} | ||
onChange={[Function]} | ||
type="dual" | ||
/> | ||
</FormRow> | ||
</Fragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters