Files
vault/ui/tests/helpers/components/dashboard/replication-card.js
Kianna 8835514e76 UI: [VAULT-12979] Dashboard Landing Page (#21057)
Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
Co-authored-by: Angel Garbarino <angel@hashicorp.com>
2023-08-24 13:30:45 -07:00

27 lines
1.4 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
const SELECTORS = {
getReplicationTitle: (type, name) => `[data-test-${type}-replication] [data-test-title="${name}"]`,
getStateTooltipTitle: (type, name) => `[data-test-${type}-replication] [data-test-tooltip-title="${name}"]`,
getStateTooltipIcon: (type, name, icon) =>
`[data-test-${type}-replication] [data-test-tooltip-title="${name}"] [data-test-icon="${icon}"]`,
drOnlyStateSubText: '[data-test-dr-replication] [data-test-subtext="state"]',
knownSecondariesLabel: '[data-test-stat-text="known secondaries"] .stat-label',
knownSecondariesSubtext: '[data-test-stat-text="known secondaries"] .stat-text',
knownSecondariesValue: '[data-test-stat-text="known secondaries"] .stat-value',
replicationEmptyState: '[data-test-replication-card] [data-test-component="empty-state"]',
replicationEmptyStateTitle:
'[data-test-replication-card] [data-test-component="empty-state"] .empty-state-title',
replicationEmptyStateMessage:
'[data-test-replication-card] [data-test-component="empty-state"] .empty-state-message',
replicationEmptyStateActions:
'[data-test-replication-card] [data-test-component="empty-state"] .empty-state-actions',
replicationEmptyStateActionsLink:
'[data-test-replication-card] [data-test-component="empty-state"] .empty-state-actions a',
};
export default SELECTORS;