9b3f5c2386
* Add tests for connection create and edit * Cleanup old tests, add role create form test * Fix linter/selector
15 lines
662 B
JavaScript
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"]'),
|
|
});
|