mirror of https://github.com/status-im/consul.git
49 lines
2.8 KiB
JavaScript
49 lines
2.8 KiB
JavaScript
import { create, clickable, is, attribute, collection, text } from 'ember-cli-page-object';
|
|
import { visitable } from 'consul-ui/tests/lib/page-object/visitable';
|
|
import createDeletable from 'consul-ui/tests/lib/page-object/createDeletable';
|
|
import createSubmitable from 'consul-ui/tests/lib/page-object/createSubmitable';
|
|
import createCreatable from 'consul-ui/tests/lib/page-object/createCreatable';
|
|
import createCancelable from 'consul-ui/tests/lib/page-object/createCancelable';
|
|
|
|
import page from 'consul-ui/tests/pages/components/page';
|
|
import radiogroup from 'consul-ui/tests/lib/page-object/radiogroup';
|
|
|
|
import index from 'consul-ui/tests/pages/index';
|
|
import dcs from 'consul-ui/tests/pages/dc';
|
|
import settings from 'consul-ui/tests/pages/settings';
|
|
import catalogFilter from 'consul-ui/tests/pages/components/catalog-filter';
|
|
import services from 'consul-ui/tests/pages/dc/services/index';
|
|
import service from 'consul-ui/tests/pages/dc/services/show';
|
|
import nodes from 'consul-ui/tests/pages/dc/nodes/index';
|
|
import node from 'consul-ui/tests/pages/dc/nodes/show';
|
|
import kvs from 'consul-ui/tests/pages/dc/kv/index';
|
|
import kv from 'consul-ui/tests/pages/dc/kv/edit';
|
|
import aclFilter from 'consul-ui/tests/pages/components/acl-filter';
|
|
import acls from 'consul-ui/tests/pages/dc/acls/index';
|
|
import acl from 'consul-ui/tests/pages/dc/acls/edit';
|
|
import intentionFilter from 'consul-ui/tests/pages/components/intention-filter';
|
|
import intentions from 'consul-ui/tests/pages/dc/intentions/index';
|
|
import intention from 'consul-ui/tests/pages/dc/intentions/edit';
|
|
|
|
const deletable = createDeletable(clickable);
|
|
const submitable = createSubmitable(clickable, is);
|
|
const creatable = createCreatable(clickable, is);
|
|
const cancelable = createCancelable(clickable, is);
|
|
export default {
|
|
index: create(index(visitable, collection)),
|
|
dcs: create(dcs(visitable, clickable, attribute, collection)),
|
|
services: create(services(visitable, clickable, attribute, collection, page, catalogFilter)),
|
|
service: create(service(visitable, attribute, collection, text, catalogFilter)),
|
|
nodes: create(nodes(visitable, clickable, attribute, collection, catalogFilter)),
|
|
node: create(node(visitable, deletable, clickable, attribute, collection, radiogroup)),
|
|
kvs: create(kvs(visitable, deletable, creatable, clickable, attribute, collection)),
|
|
kv: create(kv(visitable, submitable, deletable, cancelable, clickable)),
|
|
acls: create(acls(visitable, deletable, creatable, clickable, attribute, collection, aclFilter)),
|
|
acl: create(acl(visitable, submitable, deletable, cancelable, clickable)),
|
|
intentions: create(
|
|
intentions(visitable, deletable, creatable, clickable, attribute, collection, intentionFilter)
|
|
),
|
|
intention: create(intention(visitable, submitable, deletable, cancelable)),
|
|
settings: create(settings(visitable, submitable)),
|
|
};
|