open-vault/ui/tests/helpers/pki/workflow.js

27 lines
990 B
JavaScript
Raw Normal View History

2022-12-06 20:34:43 +00:00
import { SELECTORS as ROLEFORM } from './roles/form';
import { SELECTORS as GENERATECERT } from './pki-role-generate';
2022-12-06 20:34:43 +00:00
export const SELECTORS = {
breadcrumbContainer: '[data-test-breadcrumbs]',
breadcrumbs: '[data-test-breadcrumbs] li',
pageTitle: '[data-test-pki-role-page-title]',
// TABS
overviewTab: '[data-test-secret-list-tab="Overview"]',
rolesTab: '[data-test-secret-list-tab="Roles"]',
issuersTab: '[data-test-secret-list-tab="Issuers"]',
certsTab: '[data-test-secret-list-tab="Certificates"]',
keysTab: '[data-test-secret-list-tab="Keys"]',
configTab: '[data-test-secret-list-tab="Configuration"]',
// ROLES
deleteRoleButton: '[data-test-pki-role-delete]',
generateCertLink: '[data-test-pki-role-generate-cert]',
signCertLink: '[data-test-pki-role-sign-cert]',
editRoleLink: '[data-test-pki-role-edit-link]',
createRoleLink: '[data-test-pki-role-create-link]',
roleForm: {
...ROLEFORM,
},
generateCertForm: {
...GENERATECERT,
},
2022-12-06 20:34:43 +00:00
};