open-vault/ui/tests/pages/secrets/backend/kmip/scopes.js
Matthew Irish 29a85fa1c5
UI kmip acceptance (#7129)
* change the story blueprint so that using -ir will generate a story in the expected place for in-repo addons and engines

* update gen-story-md script to do output md to stories folder inside of in-repo addons and engines

* update storybook config to look for story files in /lib

* add story for list-view component

* add list view page object

* add kmip page objects and tests

* update storybook commands in the README

* split tests up more

* update var name in storybook
2019-08-01 16:04:59 -05:00

15 lines
659 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/kmip/scopes'),
visitCreate: visitable('/vault/secrets/:backend/kmip/scopes/create'),
createLink: clickable('[data-test-scope-create]'),
scopeName: fillable('[data-test-input="name"]'),
submit: clickable('[data-test-edit-form-submit]'),
configurationLink: clickable('[data-test-kmip-link-config]'),
configureLink: clickable('[data-test-kmip-link-configure]'),
scopesLink: clickable('[data-test-kmip-link-scopes]'),
});