e029b92b3f
This enables people to enter things using the mouse to paste for example, plus possible other things. As an aside it also answers my query regarding `fillIn` for testing, nothing needs to be actually _typed_ anymore! Doh
12 lines
466 B
JavaScript
12 lines
466 B
JavaScript
import { create, clickable, triggerable, is } from 'ember-cli-page-object';
|
|
import { visitable } from 'consul-ui/tests/lib/page-object/visitable';
|
|
|
|
export default create({
|
|
// custom visitable
|
|
visit: visitable(['/:dc/acls/:acl', '/:dc/acls/create']),
|
|
// fillIn: fillable('input, textarea, [contenteditable]'),
|
|
name: triggerable('keypress', '[name="name"]'),
|
|
submit: clickable('[type=submit]'),
|
|
submitIsEnabled: is(':not(:disabled)', '[type=submit]'),
|
|
});
|