2020-07-09 13:26:52 +00:00
|
|
|
export default function(visitable, clickable, text, attribute, present, collection, popoverSelect) {
|
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-09-30 13:13:38 +00:00
|
|
|
mesh: present('[data-test-mesh]'),
|
|
|
|
associatedServiceCount: present('[data-test-associated-service-count]'),
|
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),
|
2020-03-09 09:10:47 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|