open-vault/ui/tests/pages/secrets/backend/transform/roles.js
Chelsea Shaw 8e62cf66bc
Ui/transformation edit update roles (#9955)
* Update or create new role after allowed_roles on transformation updated

* Update tests to include transformation create/edit and role create scenarios
2020-09-15 13:46:35 -05:00

14 lines
624 B
JavaScript

import { create, clickable, fillable, visitable } from 'ember-cli-page-object';
import ListView from 'vault/tests/pages/components/list-view';
export default create({
...ListView,
visit: visitable('/vault/secrets/:backend/list?tab=roles'),
visitCreate: visitable('/vault/secrets/:backend/create?itemType=role'),
createLink: clickable('[data-test-secret-create="true"]'),
name: fillable('[data-test-input="name"]'),
transformations: fillable('[data-test-input="transformations"'),
submit: clickable('[data-test-role-transform-create="true"]'),
modalConfirm: clickable('[data-test-edit-confirm-button]'),
});