7eff7b51aa
* Refactors ConfirmAction implementation as a popover * Improves copy surrounding consequences of destructive actions * Moves 'Delete' buttons to Toolbar
17 lines
600 B
JavaScript
17 lines
600 B
JavaScript
import { Base } from '../show';
|
|
import { create, clickable, collection, isPresent } from 'ember-cli-page-object';
|
|
|
|
export default create({
|
|
...Base,
|
|
rows: collection('data-test-row-label'),
|
|
edit: clickable('[data-test-edit-link]'),
|
|
editIsPresent: isPresent('[data-test-edit-link]'),
|
|
generate: clickable('[data-test-backend-credentials]'),
|
|
generateIsPresent: isPresent('[data-test-backend-credentials]'),
|
|
deleteBtn: clickable('[data-test-confirm-action-trigger]'),
|
|
confirmBtn: clickable('[data-test-confirm-button]'),
|
|
deleteRole() {
|
|
return this.deleteBtn().confirmBtn();
|
|
},
|
|
});
|