open-vault/ui/tests/pages/access/methods.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

20 lines
544 B
JavaScript

import { create, attribute, visitable, collection, hasClass, text } from 'ember-cli-page-object';
export default create({
visit: visitable('/vault/access/'),
navLinks: collection('[data-test-link]', {
isActive: hasClass('is-active'),
text: text(),
scope: '[data-test-sidebar]',
}),
backendLinks: collection('[data-test-auth-backend-link]', {
path: text('[data-test-path]'),
id: attribute('data-test-id', '[data-test-path]'),
}),
findLinkById(id) {
return this.backendLinks.filterBy('id', id)[0];
},
});