mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
33 lines
980 B
TypeScript
33 lines
980 B
TypeScript
import { reportA11y } from '../support/accessibility'
|
|
|
|
describe('a11y', () => {
|
|
it('home should have no accessibility violations', () => {
|
|
cy.get('[data-attr="menu-item-projecthomepage"]').click()
|
|
cy.injectAxe()
|
|
reportA11y({ includedImpacts: ['critical'] }, 'home-page-critical', true)
|
|
reportA11y({ includedImpacts: ['serious'] }, 'home-page-serious', true)
|
|
})
|
|
|
|
const sidebarItems = [
|
|
'dashboards',
|
|
'savedinsights',
|
|
'replay',
|
|
'featureflags',
|
|
'experiments',
|
|
'activity',
|
|
'datamanagement',
|
|
'personsmanagement',
|
|
'pipeline',
|
|
'toolbarlaunch',
|
|
'settings',
|
|
]
|
|
|
|
sidebarItems.forEach((sideBarItem) => {
|
|
it(`${sideBarItem} should have no accessibility violations`, () => {
|
|
cy.clickNavMenu(sideBarItem)
|
|
cy.injectAxe()
|
|
reportA11y({ includedImpacts: ['serious', 'critical'] }, sideBarItem)
|
|
})
|
|
})
|
|
})
|