open-vault/ui/tests/helpers/pki/page/pki-configuration-edit.js
hc-github-team-secure-vault-core 30837138d9
backport of commit 34a722195e730b85de1c1d29f0766264e2552434 (#20951)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-06-02 03:29:48 +00:00

26 lines
1.2 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export const SELECTORS = {
errorBanner: '[data-test-error-banner]',
acmeEditSection: '[data-test-acme-edit-section]',
configEditSection: '[data-test-cluster-config-edit-section]',
configInput: (attr) => `[data-test-input="${attr}"]`,
stringListInput: (attr) => `[data-test-input="${attr}"] [data-test-string-list-input="0"]`,
urlsEditSection: '[data-test-urls-edit-section]',
urlFieldInput: (attr) => `[data-test-input="${attr}"] textarea`,
urlFieldLabel: (attr) => `[data-test-input="${attr}"] label`,
crlEditSection: '[data-test-crl-edit-section]',
crlToggleInput: (attr) => `[data-test-input="${attr}"] input`,
crlTtlInput: (attr) => `[data-test-ttl-value="${attr}"]`,
crlFieldLabel: (attr) => `[data-test-input="${attr}"] label`,
saveButton: '[data-test-configuration-edit-save]',
cancelButton: '[data-test-configuration-edit-cancel]',
validationAlert: '[data-test-configuration-edit-validation-alert]',
deleteButton: (attr) => `[data-test-input="${attr}"] [data-test-string-list-button="delete"]`,
groupHeader: (group) => `[data-test-crl-header="${group}"]`,
checkboxInput: (attr) => `[data-test-input="${attr}"]`,
};