open-vault/ui/tests/pages/secrets/backend/ssh/show.js
Joshua Ogle 7eff7b51aa
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

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