consul/ui-v2/tests/pages/dc/services/show.js

27 lines
643 B
JavaScript
Raw Normal View History

export default function(
visitable,
clickable,
attribute,
collection,
text,
intentions,
filter,
tabs
) {
2018-07-04 14:06:20 +00:00
return {
visit: visitable('/:dc/services/:service'),
externalSource: attribute('data-test-external-source', 'h1 span'),
dashboardAnchor: {
href: attribute('href', '[data-test-dashboard-anchor]'),
},
tabs: tabs('tab', ['instances', 'intentions', 'routing', 'tags']),
2018-07-04 14:06:20 +00:00
filter: filter,
// TODO: These need to somehow move to subpages
instances: collection('#instances [data-test-tabular-row]', {
address: text('[data-test-address]'),
}),
intentions: intentions(),
2018-07-04 14:06:20 +00:00
};
}