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

@@ -111,6 +111,11 @@ test.describe('« Plus » dropdown', () => {
const boxes = await rows.evaluateAll((els) =>
els.map((el) => el.getBoundingClientRect().toJSON()),
)
expect(new Set(boxes.map((b) => Math.round(b.x))).size, 'same x').toBe(1)
expect(
new Set(boxes.map((b) => Math.round(b.width))).size,
'same width',
).toBe(1)
boxes.forEach((box, at) => {
expect(box.height, `row ${at} height`).toBeGreaterThanOrEqual(44)
expect(box.x, `row ${at} left`).toBeGreaterThanOrEqual(0)
@@ -122,6 +127,13 @@ test.describe('« Plus » dropdown', () => {
}
})
await expectAccessible(page, `« Plus » list at ${width} px`)
// An active row: pick Constats, reopen, axe with the tint and the check.
await rows.first().click()
await more(page).click()
await expect(list(page).locator('[aria-current="true"]')).toHaveCount(1)
// Axe reads the colours: wait until the fade-in has ended.
await expect(list(page)).toHaveCSS('opacity', '1')
await expectAccessible(page, `« Plus » list, active row, at ${width} px`)
})
}