vault/ui/tests/helpers/auth/auth-form-selectors.ts
claire bontempo 6964c093e7
UI: Make single method views consistent, add max width (#30660)
* 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
2025-05-19 08:57:45 -05:00

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]',
};