-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide ability to view password (#1980)
* Provide ability to view password Signed-off-by: Derek Ho <[email protected]> * Add snapshot to verify it is a FieldPassword Signed-off-by: Derek Ho <[email protected]> * Stop running macos unit tests and change login screen Signed-off-by: Derek Ho <[email protected]> * Try to fix the flakiness of oidc with basepath test Signed-off-by: Derek Ho <[email protected]> * Revert data test subj changes Signed-off-by: Derek Ho <[email protected]> --------- Signed-off-by: Derek Ho <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]>
- Loading branch information
1 parent
b3e444f
commit 5fbc14e
Showing
7 changed files
with
106 additions
and
67 deletions.
There are no files selected for viewing
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
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
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
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
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
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