open-vault/ui/tests/pages/components/identity/edit-form.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

29 lines
951 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { clickable, fillable, attribute } from 'ember-cli-page-object';
import { waitFor } from '@ember/test-helpers';
import fields from '../form-field';
export default {
...fields,
cancelLinkHref: attribute('href', '[data-test-cancel-link]'),
cancelLink: clickable('[data-test-cancel-link]'),
name: fillable('[data-test-input="name"]'),
disabled: clickable('[data-test-input="disabled"]'),
metadataKey: fillable('[data-test-kv-key]'),
metadataValue: fillable('[data-test-kv-value]'),
type: fillable('[data-test-input="type"]'),
submit: clickable('[data-test-identity-submit]'),
delete: clickable('[data-test-confirm-action-trigger]'),
confirmDelete: clickable('[data-test-confirm-button]'),
waitForConfirm() {
return waitFor('[data-test-confirm-button]');
},
waitForFlash() {
return waitFor('[data-test-flash-message-body]');
},
};