Files
threshold-ui/ui/admin/tests/acceptance/credential-store/selectors.js
T
Carlos Alcaide Corvo 7e2f3e3df3 Refactor credential-store/credentials list test selectors (#2884)
* Refactor credential-store/credentials list test selectors
2025-06-13 08:24:18 -07:00

28 lines
1.0 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
// Manage actions dropdown selectors
export const MANAGE_DROPDOWN =
'[data-test-manage-credential-stores-dropdown] button:first-child';
export const NEW_CREDENTIAL_ACTION =
'[data-test-manage-credential-stores-dropdown] ul li:nth-child(1) a';
export const EDIT_WORKER_FILTER_ACTION =
'[data-test-manage-credential-stores-dropdown] ul li:nth-child(2) a';
export const DELETE_ACTION =
'[data-test-manage-credential-stores-dropdown] ul li:last-child button';
// Search filtering selectors
export const NO_RESULTS_MSG = '[data-test-no-credential-store-results]';
export const CODE_EDITOR_BODY = '[data-test-code-editor-field-editor] textarea';
export const CODE_BLOCK_BODY = '.hds-code-block__code';
export const EDITOR_WORKER_FILTER_VALUE = '"dev" in "/tags/env"';
export const TYPE_VAULT = '[value="vault"]';
export const FIELD_VAULT_ADDRESS = '[name="address"]';
export const FIELD_VAULT_ADDRESS_ERROR =
'[data-test-error-message-vault-address]';