12345678910111213141516171819202122 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { axe } from 'vitest-axe'
- import { mockApplicationConfig } from '#tests/support/mock-applicationConfig.ts'
- import { visitView } from '#tests/support/components/visitView.ts'
- import '#tests/graphql/builders/mocks.ts'
- describe('testing login a11y', () => {
- beforeEach(() => {
- mockApplicationConfig({
- user_create_account: true,
- user_show_password_login: true,
- product_name: 'Zammad Test System',
- })
- })
- it('has no accessibility violations', async () => {
- const view = await visitView('/login')
- const results = await axe(view.html())
- expect(results).toHaveNoViolations()
- })
- })
|