vault/ui/tests/helpers/auth/auth-form-selectors.ts
claire bontempo 5d91f7d9bc
UI: Fix token renewal breaking policy checks (#29416)
* set namespace_path in renewal method

* add tests

* add changelog
2025-02-03 10:56:39 -08:00

18 lines
661 B
TypeScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
export const AUTH_FORM = {
method: '[data-test-select=auth-method]',
form: '[data-test-auth-form]',
login: '[data-test-auth-submit]',
tabs: (method: string) => (method ? `[data-test-auth-method="${method}"]` : '[data-test-auth-method]'),
description: '[data-test-description]',
roleInput: '[data-test-role]',
input: (item: string) => `[data-test-${item}]`, // i.e. jwt, role, token, password or username
mountPathInput: '[data-test-auth-form-mount-path]',
moreOptions: '[data-test-auth-form-options-toggle]',
namespaceInput: '[data-test-auth-form-ns-input]',
};