vault/ui/tests/pages/components/masked-input.js
Angel Garbarino bc3783a385
Mask LDAP bindpass while typing (#10087)
* use input field type password when maskWhileTyping is passed which returns true when it is bindpass

* setup testing for type password and unmasking

* add back original spacing

* remove is
2020-10-07 10:27:41 -06:00

18 lines
620 B
JavaScript

import { attribute, clickable, fillable, isPresent } from 'ember-cli-page-object';
import { focus, blur } from '@ember/test-helpers';
export default {
wrapperClass: attribute('class', '[data-test-masked-input]'),
enterText: fillable('[data-test-textarea]'),
textareaIsPresent: isPresent('[data-test-textarea]'),
inputIsPresent: isPresent('[data-test-input]'),
copyButtonIsPresent: isPresent('[data-test-copy-button]'),
toggleMasked: clickable('[data-test-button]'),
async focusField() {
return focus('[data-test-textarea]');
},
async blurField() {
return blur('[data-test-textarea]');
},
};