vault/ui/tests/helpers/mfa/mfa-selectors.ts
claire bontempo c881782a52
UI: Add auth tests (#30033)
* rename page test to login form

* add username/password tests to auth page test

* add github and generalize tests

* finish standard auth types for page test

* add tests for onNamespaceInput

* fix accessibility violation

* add oidc provider qp test

* move helper into test

* move destructured arg

* address oidc auth method flakiness...maybe?

* cleanup unused fake window methods

* add comment why...

* fix diff

* fix header

* finish mfa acceptance tests move mfa selectors to folder
2025-03-28 12:45:10 -07:00

11 lines
254 B
TypeScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
export const MFA_SELECTORS = {
mfaForm: '[data-test-mfa-form]',
passcode: (idx: number) => `[data-test-mfa-passcode="${idx}"]`,
validate: '[data-test-mfa-validate]',
};