open-vault/ui/tests/pages/settings/auth/enable.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

19 lines
485 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { create, visitable } from 'ember-cli-page-object';
import backendForm from '../../components/mount-backend-form';
import flashMessages from '../../components/flash-message';
export default create({
visit: visitable('/vault/settings/auth/enable'),
...backendForm,
flash: flashMessages,
enable: async function (type, path) {
await this.visit();
await this.mount(type, path);
},
});