2018-07-04 14:06:20 +00:00
|
|
|
export default function(visitable, clickable, attribute, collection, filter) {
|
2019-08-12 15:43:18 +00:00
|
|
|
const node = {
|
|
|
|
name: attribute('data-test-node'),
|
|
|
|
leader: attribute('data-test-leader', '[data-test-leader]'),
|
|
|
|
node: clickable('header a'),
|
|
|
|
};
|
2018-07-04 14:06:20 +00:00
|
|
|
return {
|
|
|
|
visit: visitable('/:dc/nodes'),
|
2019-08-12 15:43:18 +00:00
|
|
|
nodes: collection('[data-test-node]', node),
|
|
|
|
healthyNodes: collection('.healthy [data-test-node]', node),
|
|
|
|
unHealthyNodes: collection('.unhealthy [data-test-node]', node),
|
2020-06-12 15:50:09 +00:00
|
|
|
filter: filter('[data-test-catalog-filter]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|