mirror of https://github.com/hashicorp/consul
26 lines
645 B
JavaScript
26 lines
645 B
JavaScript
|
import { clickable } from 'ember-cli-page-object';
|
||
|
export default {
|
||
|
navigation: ['services', 'nodes', 'kvs', 'acls', 'docs', 'settings'].reduce(
|
||
|
function(prev, item, i, arr) {
|
||
|
const key = item;
|
||
|
return Object.assign({}, prev, {
|
||
|
[key]: clickable(`[data-test-main-nav-${item}] a`),
|
||
|
});
|
||
|
},
|
||
|
{
|
||
|
scope: '[data-test-navigation]',
|
||
|
}
|
||
|
),
|
||
|
footer: ['copyright', 'docs'].reduce(
|
||
|
function(prev, item, i, arr) {
|
||
|
const key = item;
|
||
|
return Object.assign({}, prev, {
|
||
|
[key]: clickable(`[data-test-main-nav-${item}`),
|
||
|
});
|
||
|
},
|
||
|
{
|
||
|
scope: '[data-test-footer]',
|
||
|
}
|
||
|
),
|
||
|
};
|