2020-08-28 13:21:03 +00:00
|
|
|
export default function(visitable, text, clickable, attribute, collection, popoverSelect) {
|
2019-08-12 15:43:18 +00:00
|
|
|
const node = {
|
2020-08-28 13:21:03 +00:00
|
|
|
name: text('[data-test-node]'),
|
2019-08-12 15:43:18 +00:00
|
|
|
leader: attribute('data-test-leader', '[data-test-leader]'),
|
2020-08-28 13:21:03 +00:00
|
|
|
node: clickable('a'),
|
2019-08-12 15:43:18 +00:00
|
|
|
};
|
2018-07-04 14:06:20 +00:00
|
|
|
return {
|
|
|
|
visit: visitable('/:dc/nodes'),
|
2020-08-28 13:21:03 +00:00
|
|
|
nodes: collection('.consul-node-list [data-test-list-row]', node),
|
|
|
|
home: clickable('[data-test-home]'),
|
|
|
|
sort: popoverSelect(),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|