fix(editor): Plus rows hover tint, axe on an active row, line limits

This commit is contained in:
bchanot committed 2026-11-15 16:21:01 +01:00
1 parent 2c4c771269
commit da755f9768
3 files changed
+30 -7

No files matched your search

@@ -65,7 +65,7 @@ function mount() {
}
describe('the overlay', () => {
it('opens as an absolute full-width overlay under the row and closes on a second click', async () => {
it('opens as a full-width overlay under the row, a second click closes', async () => {
const { user } = mount()
await user.click(more())
expect(more()).toHaveAttribute('aria-expanded', 'true')
@@ -110,6 +110,7 @@ describe('the vertical list', () => {
])
expect(list()!.querySelector('[aria-current]')).toBeNull()
rows.forEach((row) => expect(row).toHaveClass('min-h-12', 'w-full'))
rows.forEach((row) => expect(row.className).toContain('hover:bg-'))
await user.click(rows[0])
await user.click(more())
const current = list()!.querySelectorAll('[aria-current="true"]')
@@ -305,7 +306,7 @@ describe('final review: keyboard focus leaving « Plus » (M-8)', () => {
await gone()
})
it('a focus placed elsewhere by the page keeps it open: Escape closes it and returns the focus', async () => {
it('a focus placed elsewhere keeps it open: Escape closes and returns the focus', async () => {
const { user } = mount()
await user.click(more())
act(() => screen.getByRole('button', { name: 'outside' }).focus())