2020-04-08 17:09:36 +00:00
|
|
|
export default function(visitable, clickable, text, attribute, collection, page, filter) {
|
|
|
|
const service = {
|
|
|
|
name: text('a span:nth-child(2)'),
|
|
|
|
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,
|
|
|
|
filter: filter,
|
2020-03-09 09:10:47 +00:00
|
|
|
home: clickable('[data-test-home]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|