mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-17 12:07:02 +02:00
* address all h1 title is-3 headings * fix mult-factor and tests * qa'ing * clean up * clean up * clean up * fix tests * fix test * one more * okay this is the last one. * blah
25 lines
624 B
JavaScript
25 lines
624 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { create, attribute, visitable, collection, hasClass, text } from 'ember-cli-page-object';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/access/'),
|
|
methodsLink: {
|
|
isActive: hasClass('active'),
|
|
text: text(),
|
|
scope: '[data-test-sidebar-nav-link="Authentication Methods"]',
|
|
},
|
|
|
|
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];
|
|
},
|
|
});
|