mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2026-01-15 01:06:30 +00:00
15 lines
474 B
JavaScript
15 lines
474 B
JavaScript
import { create, visitable } from 'ember-cli-page-object';
|
|
import backendForm from '../../components/mount-backend-form';
|
|
import flashMessages from '../../components/flash-message';
|
|
import withFlash from 'vault/tests/helpers/with-flash';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/settings/auth/enable'),
|
|
...backendForm,
|
|
flash: flashMessages,
|
|
enable: async function(type, path) {
|
|
await this.visit();
|
|
return withFlash(this.mount(type, path));
|
|
},
|
|
});
|