// Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ import { axe } from 'vitest-axe' import { visitView } from '#tests/support/components/visitView.ts' import { mockUserCurrent } from '#tests/support/mock-userCurrent.ts' import { mockTicketOverviews } from '#tests/support/mocks/ticket-overviews.ts' describe('testing home a11y', () => { beforeEach(() => { mockUserCurrent({ id: '666' }) mockTicketOverviews() }) it('home screen has no accessibility violations', async () => { const view = await visitView('/') const results = await axe(view.html()) expect(results).toHaveNoViolations() }) it('favorite ticket overviews screen has no accessibility violations', async () => { const view = await visitView('/favorite/ticker-overviews/edit') const results = await axe(view.html()) expect(results).toHaveNoViolations() }) })