signup-verify-a11y.spec.ts 600 B

1234567891011121314151617181920
  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 signup verify a11y', () => {
  6. beforeEach(() => {
  7. mockApplicationConfig({
  8. user_create_account: true,
  9. })
  10. })
  11. it('has no accessibility violations', async () => {
  12. const view = await visitView('/signup/verify')
  13. const results = await axe(view.html())
  14. expect(results).toHaveNoViolations()
  15. })
  16. })