mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-20 14:11:07 +02:00
* Address comments * Fix serailizer warning mesage * Reset pageFilter when exiting * Add start and end time validation and fix bugs * Fix failing tests * Add validation tests * Set end time in contorller * Address feedback * Remove new date * Put new Date back
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}"]`,
|
|
fieldValidation: (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}"]`,
|
|
};
|