2018-09-25 16:28:26 +00:00
|
|
|
import { attribute, clickable, fillable, isPresent } from 'ember-cli-page-object';
|
|
|
|
import { focus, blur } from '@ember/test-helpers';
|
2018-06-14 18:52:00 +00:00
|
|
|
|
|
|
|
export default {
|
2018-09-25 16:28:26 +00:00
|
|
|
wrapperClass: attribute('class', '[data-test-masked-input]'),
|
2018-06-14 18:52:00 +00:00
|
|
|
enterText: fillable('[data-test-textarea]'),
|
|
|
|
textareaIsPresent: isPresent('[data-test-textarea]'),
|
|
|
|
toggleMasked: clickable('[data-test-button]'),
|
2018-09-25 16:28:26 +00:00
|
|
|
async focusField() {
|
|
|
|
return focus('[data-test-textarea]');
|
|
|
|
},
|
|
|
|
async blurField() {
|
|
|
|
return blur('[data-test-textarea]');
|
|
|
|
},
|
2018-06-14 18:52:00 +00:00
|
|
|
};
|