login-a11y.spec.ts 705 B

12345678910111213141516171819202122
  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. import '#tests/graphql/builders/mocks.ts'
  6. describe('testing login a11y', () => {
  7. beforeEach(() => {
  8. mockApplicationConfig({
  9. user_create_account: true,
  10. user_show_password_login: true,
  11. product_name: 'Zammad Test System',
  12. })
  13. })
  14. it('has no accessibility violations', async () => {
  15. const view = await visitView('/login')
  16. const results = await axe(view.html())
  17. expect(results).toHaveNoViolations()
  18. })
  19. })