vault/ui/tests/pages/secrets/backend/ssh/generate-otp.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

19 lines
589 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { Base } from '../credentials';
import { value, create, fillable, isPresent } from 'ember-cli-page-object';
export default create({
...Base,
userIsPresent: isPresent('[data-test-input="username"]'),
ipIsPresent: isPresent('[data-test-input="ip"]'),
user: fillable('[data-test-input="username"]'),
ip: fillable('[data-test-input="ip"]'),
warningIsPresent: isPresent('[data-test-warning]'),
commonNameValue: value('[data-test-input="commonName"]'),
generateOTP: async function () {},
});