personal-setting-linked-accounts.spec-a11y.spec.ts 716 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { axe } from 'vitest-axe'
  3. import { visitView } from '#tests/support/components/visitView.ts'
  4. import { mockApplicationConfig } from '#tests/support/mock-applicationConfig.ts'
  5. describe('testing locale a11y view', async () => {
  6. beforeEach(() => {
  7. mockApplicationConfig({
  8. two_factor_authentication_method_security_keys: true,
  9. two_factor_authentication_method_authenticator_app: true,
  10. })
  11. })
  12. it('has no accessibility violations', async () => {
  13. const view = await visitView('/personal-setting/linked-accounts')
  14. const results = await axe(view.html())
  15. expect(results).toHaveNoViolations()
  16. })
  17. })