2020-05-11 14:04:27 +00:00
|
|
|
export default function(visitable, clickable, text, attribute, collection, page, popoverSort) {
|
2020-04-08 17:09:36 +00:00
|
|
|
const service = {
|
2020-05-11 14:04:27 +00:00
|
|
|
name: text('[data-test-service-name]'),
|
2020-04-08 17:09:36 +00:00
|
|
|
service: clickable('a'),
|
|
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]'),
|
2020-05-05 16:29:51 +00:00
|
|
|
kind: attribute('data-test-kind', '[data-test-kind]'),
|
2020-04-08 17:09:36 +00:00
|
|
|
};
|
2018-07-04 14:06:20 +00:00
|
|
|
return {
|
|
|
|
visit: visitable('/:dc/services'),
|
2020-04-08 17:09:36 +00:00
|
|
|
services: collection('.consul-service-list > ul > li:not(:first-child)', service),
|
2019-12-17 18:47:37 +00:00
|
|
|
dcs: collection('[data-test-datacenter-picker]', {
|
|
|
|
name: clickable('a'),
|
|
|
|
}),
|
2018-07-04 14:06:20 +00:00
|
|
|
navigation: page.navigation,
|
2020-03-09 09:10:47 +00:00
|
|
|
home: clickable('[data-test-home]'),
|
2020-05-11 14:04:27 +00:00
|
|
|
sort: popoverSort,
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|