vault/ui/tests/pages/components/masked-input.js
malinac02 7e6bb1fb7c
UI: Display minus icon for empty MaskedInput value. Show MaskedInput for KV secrets without values (#22039)
* 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
2023-07-31 12:29:43 -07:00

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]'),
};