2023-03-15 16:00:52 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2018-09-28 14:36:18 +00:00
|
|
|
import { text, create, collection, visitable, fillable, clickable } from 'ember-cli-page-object';
|
|
|
|
|
|
|
|
export default create({
|
|
|
|
visit: visitable('/vault/init'),
|
|
|
|
submit: clickable('[data-test-init-submit]'),
|
|
|
|
shares: fillable('[data-test-key-shares]'),
|
|
|
|
threshold: fillable('[data-test-key-threshold]'),
|
|
|
|
keys: collection('[data-test-key-box]'),
|
|
|
|
buttonText: text('[data-test-advance-button]'),
|
2021-12-17 03:44:29 +00:00
|
|
|
init: async function (shares, threshold) {
|
2018-09-28 14:36:18 +00:00
|
|
|
await this.visit();
|
2021-12-17 03:44:29 +00:00
|
|
|
return this.shares(shares).threshold(threshold).submit();
|
2018-09-28 14:36:18 +00:00
|
|
|
},
|
|
|
|
});
|