mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 21:21:06 +02:00
26 lines
792 B
JavaScript
26 lines
792 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { Base } from '../show';
|
|
import { settled } from '@ember/test-helpers';
|
|
import { create, clickable, collection, text, isPresent } from 'ember-cli-page-object';
|
|
|
|
export default create({
|
|
...Base,
|
|
rows: collection('data-test-row-label'),
|
|
certificate: text('[data-test-row-value="Certificate"]'),
|
|
hasCert: isPresent('[data-test-row-value="Certificate"]'),
|
|
edit: clickable('[data-test-edit-link]'),
|
|
generateCert: clickable('[data-test-credentials-link]'),
|
|
deleteBtn: clickable('[data-test-role-delete] button'),
|
|
confirmBtn: clickable('[data-test-confirm-button]'),
|
|
async deleteRole() {
|
|
await this.deleteBtn();
|
|
await settled();
|
|
await this.confirmBtn();
|
|
await settled();
|
|
},
|
|
});
|