signup-verify-a11y.spec.ts 599 B

12345678910111213141516171819
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { axe } from 'vitest-axe'
  3. import { mockApplicationConfig } from '#tests/support/mock-applicationConfig.ts'
  4. import { visitView } from '#tests/support/components/visitView.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. })