open-consul/ui-v2/tests/pages/dc/services/index.js

17 lines
532 B
JavaScript
Raw Normal View History

2018-07-04 14:06:20 +00:00
export default function(visitable, clickable, attribute, collection, page, filter) {
return {
visit: visitable('/:dc/services'),
services: collection('[data-test-service]', {
name: attribute('data-test-service'),
service: clickable('a'),
externalSource: attribute('data-test-external-source', 'a span'),
2018-07-04 14:06:20 +00:00
}),
dcs: collection('[data-test-datacenter-picker]', {
name: clickable('a'),
}),
2018-07-04 14:06:20 +00:00
navigation: page.navigation,
filter: filter,
home: clickable('[data-test-home]'),
2018-07-04 14:06:20 +00:00
};
}