2018-04-03 14:16:57 +00:00
|
|
|
import { create, attribute, visitable, collection, hasClass, text } from 'ember-cli-page-object';
|
|
|
|
|
|
|
|
export default create({
|
|
|
|
visit: visitable('/vault/access/'),
|
2018-09-25 16:28:26 +00:00
|
|
|
navLinks: collection('[data-test-link]', {
|
2022-03-17 00:36:48 +00:00
|
|
|
isActive: hasClass('active'),
|
2018-09-25 16:28:26 +00:00
|
|
|
text: text(),
|
2018-04-03 14:16:57 +00:00
|
|
|
scope: '[data-test-sidebar]',
|
|
|
|
}),
|
|
|
|
|
2018-09-25 16:28:26 +00:00
|
|
|
backendLinks: collection('[data-test-auth-backend-link]', {
|
|
|
|
path: text('[data-test-path]'),
|
|
|
|
id: attribute('data-test-id', '[data-test-path]'),
|
2018-04-03 14:16:57 +00:00
|
|
|
}),
|
2018-09-25 16:28:26 +00:00
|
|
|
|
|
|
|
findLinkById(id) {
|
|
|
|
return this.backendLinks.filterBy('id', id)[0];
|
|
|
|
},
|
2018-04-03 14:16:57 +00:00
|
|
|
});
|