87ecae2c39
1. There are various things tests that can just have intentions added into them, like filters and such like, add intentions to these 2. Start thinking about being able to negate steps easily, which will lead on to a cleanup of the steps
26 lines
659 B
JavaScript
26 lines
659 B
JavaScript
import { clickable } from 'ember-cli-page-object';
|
|
export default {
|
|
navigation: ['services', 'nodes', 'kvs', 'acls', 'intentions', '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]',
|
|
}
|
|
),
|
|
};
|