open-vault/ui/tests/pages/access/identity/index.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

21 lines
699 B
JavaScript

import { create, clickable, text, visitable, collection } from 'ember-cli-page-object';
import flashMessage from 'vault/tests/pages/components/flash-message';
export default create({
visit: visitable('/vault/access/identity/:item_type'),
flashMessage,
items: collection('[data-test-identity-row]', {
menu: clickable('[data-test-popup-menu-trigger]'),
name: text('[data-test-identity-link]'),
}),
delete: clickable('[data-test-confirm-action-trigger]', {
scope: '[data-test-item-delete]',
testContainer: '#ember-testing',
}),
confirmDelete: clickable('[data-test-confirm-button]', {
scope: '[data-test-item-delete]',
testContainer: '#ember-testing',
}),
});