test(ci): add exporter heading levels and a11y typography smoke; update MAIN_PLAN
CI / test (pull_request) Has been cancelled

This commit is contained in:
2025-11-14 16:40:45 +09:00
parent aaa624a046
commit cd6a6ea069
93 changed files with 8543 additions and 13 deletions
+28
View File
@@ -0,0 +1,28 @@
import { render } from '@testing-library/react'
import { NextIntlClientProvider } from 'next-intl'
import { expect, test } from 'vitest'
import { axe, toHaveNoViolations } from 'jest-axe'
import FormBuilderPanel from './FormBuilderPanel'
import { createFormStore } from '@/lib/state/formStore'
expect.extend(toHaveNoViolations)
import messages from '../messages/en.json'
function Wrapper({ children }: { children: React.ReactNode }) {
return (
<NextIntlClientProvider messages={messages} locale="en">
{children}
</NextIntlClientProvider>
)
}
test('FormBuilderPanel has no obvious a11y violations', async () => {
const store = createFormStore()
const { container } = render(
<Wrapper>
<FormBuilderPanel store={store} />
</Wrapper>
)
const results = await axe(container)
expect(results).toHaveNoViolations()
})