17 lines
791 B
JavaScript
17 lines
791 B
JavaScript
import { create, visitable, fillable } from 'ember-cli-page-object';
|
|
import mountForm from 'vault/tests/pages/components/mount-backend-form';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/settings/mount-secret-backend'),
|
|
...mountForm,
|
|
version: fillable('[data-test-input="options.version"]'),
|
|
maxTTLVal: fillable('[data-test-input="config.maxLeaseTtl"] [data-test-ttl-value]'),
|
|
maxTTLUnit: fillable('[data-test-input="config.maxLeaseTtl"] [data-test-select="ttl-unit"]'),
|
|
defaultTTLVal: fillable('[data-test-input="config.defaultLeaseTtl"] [data-test-ttl-value]'),
|
|
defaultTTLUnit: fillable('[data-test-input="config.defaultLeaseTtl"] [data-test-select="ttl-unit"]'),
|
|
enable: async function(type, path) {
|
|
await this.visit();
|
|
await this.mount(type, path);
|
|
},
|
|
});
|