mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 21:21:06 +02:00
* changed MaskedInput to show a minus icon when there is no value. changed SecretFormShow to show this MaskedInput with minus icon instead of showing just a minus icon * fixed copy button for blank value in MaskedInput; added changelog * reword changelog to be more concise * added test to check if minus icon shows for MaskedInput when value is empty string * edited a test to make sytnax more concise * changed MaskedInput to show 'danger' message when copying empty value * added 2 tests to check for flash messages * changed naming of a MaskedInput test to be more descriptive
15 lines
463 B
JavaScript
15 lines
463 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { clickable, isPresent } from 'ember-cli-page-object';
|
|
|
|
export default {
|
|
textareaIsPresent: isPresent('[data-test-textarea]'),
|
|
copyButtonIsPresent: isPresent('[data-test-copy-button]'),
|
|
downloadButtonIsPresent: isPresent('[data-test-download-button]'),
|
|
toggleMasked: clickable('[data-test-button="toggle-masked"]'),
|
|
copyValue: clickable('[data-test-copy-button]'),
|
|
};
|