open-consul/ui-v2/tests/lib/page-object/createCancelable.js

12 lines
234 B
JavaScript

export default function(clickable, is) {
return function(obj) {
return {
...obj,
...{
cancel: clickable('[type=reset]'),
cancelIsEnabled: is(':not(:disabled)', '[type=reset]'),
},
};
};
}