mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
* remove title-number class and consolidate border radius * move selectable card to core addon * add top padding to db cards * update transform icon color * new selectable card component * fix db test * use selectable card in mount backend form * fix query param for overview card * update tests * fix replication card styling * make card accessible; * update tabindex * change to standalone for error handling * update test selector * update tests * go back to number only css class * fix on click tests * add changelog * update class name in template file * delete box radio
34 lines
954 B
JavaScript
34 lines
954 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { clickable, collection, fillable, text, value, attribute } from 'ember-cli-page-object';
|
|
import fields from './form-field';
|
|
|
|
export default {
|
|
...fields,
|
|
header: text('[data-test-mount-form-header]'),
|
|
submit: clickable('[data-test-mount-submit]'),
|
|
back: clickable('[data-test-mount-back]'),
|
|
path: fillable('[data-test-input="path"]'),
|
|
toggleOptions: clickable('[data-test-toggle-group="Method Options"]'),
|
|
pathValue: value('[data-test-input="path"]'),
|
|
types: collection('[data-test-mount-type]', {
|
|
select: clickable(),
|
|
id: attribute('id'),
|
|
}),
|
|
type: fillable('[name="mount-type"]'),
|
|
async selectType(type) {
|
|
return this.types.filterBy('id', type)[0].select();
|
|
},
|
|
async mount(type, path) {
|
|
await this.selectType(type);
|
|
if (path) {
|
|
await this.path(path).submit();
|
|
} else {
|
|
await this.submit();
|
|
}
|
|
},
|
|
};
|