Files
vault/ui/tests/pages/settings/auth/enable.js
Angel Garbarino 120497d813 Remove ember-cli-page-object: mount-backend-form (#28799)
* first round, there shall be more

* fix secret test

* more clean up

* maybe last round of clean up?

* this is going to take a while

* all the things or more of them at least

* this is the song that never ends...

* ... it goes on and on my friend.

* clean up clean up everybody lets clean up

* rename mount helper to mountBackend

* clean up 🧹

* address pr comments

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-10-30 20:15:59 +00:00

18 lines
497 B
JavaScript

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