mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
18 lines
492 B
JavaScript
18 lines
492 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { create, collection, visitable, fillable } from 'ember-cli-page-object';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/init'),
|
|
shares: fillable('[data-test-key-shares]'),
|
|
threshold: fillable('[data-test-key-threshold]'),
|
|
keys: collection('[data-test-key-box]'),
|
|
init: async function (shares, threshold) {
|
|
await this.visit();
|
|
return this.shares(shares).threshold(threshold);
|
|
},
|
|
});
|