B122 — fix unit assertion for responsive overflow classes

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-08-02 17:55:13 +00:00
parent 5b6af56b22
commit 8a64e330e6
No known key found for this signature in database

View file

@ -210,8 +210,9 @@ describe('CampaignHomeActionStrip', () => {
expect(list).toBeTruthy()
expect(list?.className).toMatch(/grid-cols-2/)
expect(list?.className).toMatch(/md:flex/)
expect(region?.className).not.toMatch(/overflow-x-auto/)
expect(region?.className).toMatch(/md:overflow-x-auto/)
const regionClasses = region?.className.split(/\s+/) ?? []
expect(regionClasses).not.toContain('overflow-x-auto')
expect(regionClasses.some((token) => token.includes('md:overflow-x-auto'))).toBe(true)
})
it('scrolls horizontally on pointer-fine drag past the threshold', () => {