2018-07-04 14:06:20 +00:00
|
|
|
export default function(visitable, attribute, collection, text, filter) {
|
|
|
|
return {
|
|
|
|
visit: visitable('/:dc/services/:service'),
|
2018-09-12 19:23:39 +00:00
|
|
|
externalSource: attribute('data-test-external-source', 'h1 span'),
|
2018-07-04 14:06:20 +00:00
|
|
|
nodes: collection('[data-test-node]', {
|
|
|
|
name: attribute('data-test-node'),
|
|
|
|
}),
|
|
|
|
healthy: collection('[data-test-healthy] [data-test-node]', {
|
|
|
|
name: attribute('data-test-node'),
|
|
|
|
address: text('header strong'),
|
2018-07-12 12:35:33 +00:00
|
|
|
id: text('header em'),
|
2018-07-04 14:06:20 +00:00
|
|
|
}),
|
|
|
|
unhealthy: collection('[data-test-unhealthy] [data-test-node]', {
|
|
|
|
name: attribute('data-test-node'),
|
|
|
|
address: text('header strong'),
|
2018-07-12 12:35:33 +00:00
|
|
|
id: text('header em'),
|
2018-07-04 14:06:20 +00:00
|
|
|
}),
|
|
|
|
filter: filter,
|
|
|
|
};
|
|
|
|
}
|