2023-03-15 16:00:52 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2023-01-23 19:36:34 +00:00
|
|
|
export const SELECTORS = {
|
|
|
|
mainSectionTitle: '[data-test-generate-root-title="Root parameters"]',
|
|
|
|
urlSectionTitle: '[data-test-generate-root-title="Issuer URLs"]',
|
|
|
|
keyParamsGroupToggle: '[data-test-toggle-group="Key parameters"]',
|
|
|
|
sanGroupToggle: '[data-test-toggle-group="Subject Alternative Name (SAN) Options"]',
|
|
|
|
additionalGroupToggle: '[data-test-toggle-group="Additional subject fields"]',
|
|
|
|
toggleGroupDescription: '[data-test-toggle-group-description]',
|
|
|
|
formField: '[data-test-field]',
|
|
|
|
typeField: '[data-test-input="type"]',
|
|
|
|
inputByName: (name) => `[data-test-input="${name}"]`,
|
|
|
|
fieldByName: (name) => `[data-test-field="${name}"]`,
|
|
|
|
generateRootSave: '[data-test-pki-generate-root-save]',
|
|
|
|
generateRootCancel: '[data-test-pki-generate-root-cancel]',
|
2023-04-05 21:25:55 +00:00
|
|
|
generateRootCommonNameField: '[data-test-input="commonName"]',
|
|
|
|
generateRootIssuerNameField: '[data-test-input="issuerName"]',
|
2023-01-23 19:36:34 +00:00
|
|
|
formInvalidError: '[data-test-pki-generate-root-validation-error]',
|
|
|
|
urlsSection: '[data-test-urls-section]',
|
|
|
|
urlField: '[data-test-urls-section] [data-test-input]',
|
2023-03-23 15:49:24 +00:00
|
|
|
// Shown values after save
|
|
|
|
saved: {
|
|
|
|
certificate: '[data-test-value-div="Certificate"] [data-test-masked-input]',
|
|
|
|
commonName: '[data-test-row-value="Common name"]',
|
|
|
|
issuerName: '[data-test-row-value="Issuer name"]',
|
|
|
|
issuerLink: '[data-test-value-div="Issuer ID"] a',
|
|
|
|
keyName: '[data-test-row-value="Key name"]',
|
|
|
|
keyLink: '[data-test-value-div="Key ID"] a',
|
|
|
|
privateKey: '[data-test-value-div="Private key"] [data-test-masked-input]',
|
|
|
|
serialNumber: '[data-test-row-value="Serial number"]',
|
|
|
|
},
|
2023-01-23 19:36:34 +00:00
|
|
|
};
|