* chore: 🤖 replace Rose::CodeEditor with Hds::CodeEditor - Remove CodeEditor 5 dependency * chore: 🤖 Replace CodeMirror5 dep remove CodeMirror5 and replace existing editors with HDS::CodeEditor * chore: 🤖 deleting old codeeditor styles * feat: 🎸 changing code editor changing code editor ✅ Closes: 0 * removed unused export * pr cleanup * updating tests for new code editor * responding to PR feedback * added whitespace * fixing linting violations * chore: 🤖 self-review PR self-review PR in the course of switching to new HDS code editor * fix: 🐛 fix linting bug * fix: 🐛 unneeded dependency remove jslint dependency as this is handled in the new code editor from HDS * fix: 🐛 Fixing import bug Fix import bug caused by importing scss modules that no longer exist * Fix and refactor code editor acceptance test * Fix and refactor code editor acceptance test * chore: 🤖 remove codemirror dependency * refactor: 💡 fix merge conflict issues * test: 💍 update e2e test selectors * test: 💍 fix target spec click event * refactor: 💡 clean up test selectors for code editor * refactor: 💡 clean up storage bucket test selectors * chore: 🤖 remove code mirror modifiers --------- Co-authored-by: calcaide <ccorvo@hashicorp.com> Co-authored-by: cameronperera <cameron.perera@hashicorp.com>
39 lines
1.6 KiB
JavaScript
39 lines
1.6 KiB
JavaScript
/**
|
|
* Copyright IBM Corp. 2021, 2026
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export const FIELD_TYPE_SSH = '[data-option-index="1"]';
|
|
export const FIELD_TYPE_USERNAME_PASSWORD = '[data-option-index="0"]';
|
|
export const FIELD_TYPE_USERNAME_PASSWORD_DOMAIN = '[data-option-index="2"]';
|
|
export const FIELD_TYPE_JSON = '[data-option-index="3"]';
|
|
export const FIELD_TYPE_PASSWORD = '[data-option-index="4"]';
|
|
|
|
export const FIELD_DOMAIN = '[name=domain]';
|
|
export const FIELD_PASSWORD = '[name=password]';
|
|
export const FIELD_USERNAME = '[name=username]';
|
|
export const FIELD_DOMAIN_VALUE = 'g.com';
|
|
export const FIELD_USERNAME_VALUE = 'username123';
|
|
export const FIELD_PASSWORD_VALUE = 'password123';
|
|
export const FIELD_USERNAME_WITH_DOMAIN_VALUE = 'username@g.com';
|
|
|
|
export const FIELD_PASSWORD_ERROR = '[data-test-error-message-password]';
|
|
export const FIELD_SSH_PRIVATE_KEY = '[name=private_key]';
|
|
export const FIELD_DOMAIN_ERROR = '[data-test-error-message-domain]';
|
|
export const FIELD_SSH_PRIVATE_KEY_ERROR =
|
|
'[data-test-error-message-private-key]';
|
|
export const FIELD_SSH_PRIVATE_KEY_PASSPHRASE = '[name=private_key_passphrase]';
|
|
|
|
export const MANAGE_DROPDOWN = '[data-test-manage-credentials-dropdown] button';
|
|
export const MANAGE_DROPDOWN_DELETE =
|
|
'[data-test-manage-credentials-dropdown] ul li button';
|
|
export const MANAGE_DROPDOWN_NEW_CREDENTIAL =
|
|
'[data-test-manage-credential-stores-dropdown] a';
|
|
|
|
export const MANAGE_DROPDOWN_CREDENTIAL_STORE =
|
|
'[data-test-manage-credential-stores-dropdown] button';
|
|
|
|
export const REPLACE_SECRET_BTN = '.secret-editor button';
|
|
|
|
export const TYPE_SELECT = '[name=Type]';
|