mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 07:01:09 +02:00
* WIP acceptance tess * More acceptance tests! * Update acceptance tests to use general and message selectors * Fix tests * Add more tests * Add multiple message modal test * Fix failing test * Add preview tests! * Fix tests
31 lines
1.4 KiB
JavaScript
31 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { SELECTORS as GENERAL } from 'vault/tests/helpers/general-selectors';
|
|
|
|
export const PAGE = {
|
|
// General selectors that are common between pages
|
|
...GENERAL,
|
|
inlineErrorMessage: `[data-test-inline-error-message]`,
|
|
unauthCreateFormInfo: '[data-test-unauth-info]',
|
|
radio: (radioName) => `[data-test-radio="${radioName}"]`,
|
|
field: (fieldName) => `[data-test-field="${fieldName}"]`,
|
|
input: (input) => `[data-test-input="${input}"]`,
|
|
button: (buttonName) => `[data-test-button="${buttonName}"]`,
|
|
fieldVaildation: (fieldName) => `[data-test-field-validation="${fieldName}"]`,
|
|
modal: (name) => `[data-test-modal="${name}"]`,
|
|
modalTitle: (title) => `[data-test-modal-title="${title}"]`,
|
|
modalBody: (name) => `[data-test-modal-body="${name}"]`,
|
|
modalButton: (name) => `[data-test-modal-button="${name}"]`,
|
|
alert: (name) => `data-test-custom-alert=${name}`,
|
|
alertTitle: (name) => `[data-test-custom-alert-title="${name}"]`,
|
|
alertDescription: (name) => `[data-test-custom-alert-description="${name}"]`,
|
|
alertAction: (name) => `[data-test-custom-alert-action="${name}"]`,
|
|
badge: (name) => `[data-test-badge="${name}"]`,
|
|
tab: (name) => `[data-test-custom-messages-tab="${name}"]`,
|
|
confirmActionButton: (name) => `[data-test-confirm-action="${name}"]`,
|
|
listItem: (name) => `[data-test-list-item="${name}"]`,
|
|
};
|