open-vault/ui/tests/pages/secrets/backend/database/role.js
Chelsea Shaw 9b3f5c2386
UI/db tests (#11013)
* Add tests for connection create and edit

* Cleanup old tests, add role create form test

* Fix linter/selector
2021-02-25 18:41:04 -06:00

15 lines
662 B
JavaScript

import { create, clickable, fillable, visitable, selectable } from 'ember-cli-page-object';
import ListView from 'vault/tests/pages/components/list-view';
export default create({
...ListView,
visit: visitable('/vault/secrets/:backend/list?itemType=role'),
visitShow: visitable('/vault/secrets/:backend/show/role/:id'),
visitCreate: visitable('/vault/secrets/:backend/create?itemType=role'),
createLink: clickable('[data-test-secret-create="true"]'),
name: fillable('[data-test-input="name"]'),
roleType: selectable('[data-test-input="type"'),
save: clickable('[data-test-secret-save=""]'),
edit: clickable('[data-test-edit-link="true"]'),
});