open-vault/ui/tests/helpers/pki/pki-key-form.js

16 lines
517 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export const SELECTORS = {
keyCreateButton: '[data-test-pki-key-save]',
keyCancelButton: '[data-test-pki-key-cancel]',
keyNameInput: '[data-test-input="keyName"]',
typeInput: '[data-test-input="type"]',
keyTypeInput: '[data-test-input="keyType"]',
keyBitsInput: '[data-test-input="keyBits"]',
2022-12-15 22:42:18 +00:00
validationError: '[data-test-pki-key-validation-error]',
fieldErrorByName: (name) => `[data-test-field-validation="${name}"]`,
};