open-vault/ui/tests/helpers/components/ttl-picker.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

20 lines
647 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
const selectors = {
ttlFormGroup: '[data-test-ttl-inputs]',
toggle: '[data-test-ttl-toggle]',
toggleByLabel: (label) => `[data-test-ttl-toggle="${label}"]`,
label: '[data-test-ttl-form-label]',
subtext: '[data-test-ttl-form-subtext]',
tooltipTrigger: `[data-test-tooltip-trigger]`,
ttlValue: '[data-test-ttl-value]',
ttlUnit: '[data-test-select="ttl-unit"]',
valueInputByLabel: (label) => `[data-test-ttl-value="${label}"]`,
unitInputByLabel: (label) => `[data-test-ttl-unit="${label}"] [data-test-select="ttl-unit"]`,
};
export default selectors;