mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 23:51:08 +02:00
* move OktaNumberChallenge and AuthForm to AuthPage component * return from didReceiveAttrs if component is being torn down * update auth form test * change passed task to an auth action * update auth form unit test * fix return * update jsdoc for auth form * add docs * add comments, last little cleanup, pass API error to okta number challenge * separate tests and move Auth::Page specific logic out of auth form integration test * fix test typos * fix page tests
16 lines
560 B
TypeScript
16 lines
560 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export const AUTH_FORM = {
|
|
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. role, token, password or username
|
|
mountPathInput: '[data-test-auth-form-mount-path]',
|
|
moreOptions: '[data-test-auth-form-options-toggle]',
|
|
};
|