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'),
|
2022-02-11 09:52:27 +00:00
|
|
|
status: attribute('data-test-status', '[data-test-status]'),
|
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]'),
|
2020-09-01 18:13:11 +00:00
|
|
|
sort: popoverSelect('[data-test-sort-control]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|