mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 17:11:13 +02:00
* update single method to match single tab view * add max-widht * update tests * convert page component to typescript * add azure to icons, update custom-login mirage scenario * update assertion count
23 lines
866 B
TypeScript
23 lines
866 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export const AUTH_FORM = {
|
|
selectMethod: '[data-test-select="auth type"]',
|
|
form: '[data-test-auth-form]',
|
|
login: '[data-test-auth-submit]',
|
|
tabs: '[data-test-auth-tab]',
|
|
tabBtn: (method: string) => `[data-test-auth-tab="${method}"] button`, // method is all lowercased
|
|
description: '[data-test-description]',
|
|
// old form toggle, will eventually be deleted
|
|
moreOptions: '[data-test-auth-form-options-toggle]',
|
|
// new toggle, hds component is a button
|
|
advancedSettings: '[data-test-auth-form-options-toggle] button',
|
|
managedNsRoot: '[data-test-managed-namespace-root]',
|
|
logo: '[data-test-auth-logo]',
|
|
helpText: '[data-test-auth-helptext]',
|
|
authForm: (type: string) => `[data-test-auth-form="${type}"]`,
|
|
otherMethodsBtn: '[data-test-other-methods-button]',
|
|
};
|