open-vault/ui/tests/pages/settings/auth/enable.js
Matthew Irish b32da5daad
use ember-concurrency test waiter (#6555)
* add ember-concurrency-test-waiter

* use withTestWaiter modifier in various parts of the application

* more withTestWaiter

* await instead of return for a few helpers

* update ember-cli-flash

* run ember generate ember-cli-flash

* remove withFlash helper

* fix typo and replication tests
2019-04-10 09:36:32 -05:00

14 lines
406 B
JavaScript

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);
},
});