From 8a64e330e600ab2377651c22b16871c1b733825b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 17:55:13 +0000 Subject: [PATCH] =?UTF-8?q?B122=20=E2=80=94=20fix=20unit=20assertion=20for?= =?UTF-8?q?=20responsive=20overflow=20classes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Francisco Solla --- tests/unit/campaignHomeActionButton.unit.spec.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/campaignHomeActionButton.unit.spec.tsx b/tests/unit/campaignHomeActionButton.unit.spec.tsx index 49c0b821..f361e3d2 100644 --- a/tests/unit/campaignHomeActionButton.unit.spec.tsx +++ b/tests/unit/campaignHomeActionButton.unit.spec.tsx @@ -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', () => {