Joshua Ogle 6603a86499
UI: Confirm Action as a popover
* Refactors ConfirmAction implementation as a popover
* Improves copy surrounding consequences of destructive actions
* Moves 'Delete' buttons to Toolbar
2019-05-17 11:29:21 -06:00

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();
},
});