mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-17 20:17:00 +02:00
* fix order of arguments for path-service * add tests for ssh OTP role CRUD and OTP generation
20 lines
701 B
JavaScript
20 lines
701 B
JavaScript
import { Base } from '../credentials';
|
|
import { clickable, 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"]'),
|
|
submit: clickable('[data-test-secret-generate]'),
|
|
back: clickable('[data-test-secret-generate-back]'),
|
|
generateOTP: async function() {
|
|
await this.user('admin')
|
|
.ip('192.168.1.1')
|
|
.submit();
|
|
},
|
|
});
|