mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-23 11:41:24 +01:00
* Refactors ConfirmAction implementation as a popover * Improves copy surrounding consequences of destructive actions * Moves 'Delete' buttons to Toolbar
21 lines
830 B
JavaScript
21 lines
830 B
JavaScript
import { Base } from '../show';
|
|
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]'),
|
|
editIsPresent: isPresent('[data-test-edit-link]'),
|
|
generateCert: clickable('[data-test-credentials-link]'),
|
|
generateCertIsPresent: isPresent('[data-test-credentials-link]'),
|
|
signCert: clickable('[data-test-sign-link]'),
|
|
signCertIsPresent: isPresent('[data-test-sign-link]'),
|
|
deleteBtn: clickable('[data-test-role-delete] button'),
|
|
confirmBtn: clickable('[data-test-confirm-button]'),
|
|
deleteRole() {
|
|
return this.deleteBtn().confirmBtn();
|
|
},
|
|
});
|