From 7b3d3096cd401c5bb619cd78fc3be5db26c7443f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 1 Aug 2026 10:53:33 +0000 Subject: [PATCH] =?UTF-8?q?B95=20=E2=80=94=20unit=20test=20for=20mobile=20?= =?UTF-8?q?wizard=20shell=20padding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Francisco Solla --- tests/unit/campaignWizardShell.unit.spec.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/unit/campaignWizardShell.unit.spec.tsx b/tests/unit/campaignWizardShell.unit.spec.tsx index 2699915e..61b7dadb 100644 --- a/tests/unit/campaignWizardShell.unit.spec.tsx +++ b/tests/unit/campaignWizardShell.unit.spec.tsx @@ -136,4 +136,19 @@ describe('CampaignWizardShell', () => { expect(caption?.textContent).toBe('Cairu') expect(caption?.className).toMatch(/md:block/) }) + + it('uses tighter top padding on mobile main content', () => { + const { container } = renderWizardShell({ + flowTitle: 'Ajustar votos', + stepTitle: WIZARD_MUNICIPALITY_STEP_TITLE, + isEntryStep: true, + previousHref: '/campanha', + children: null, + }) + + const main = container.querySelector('main') + expect(main?.className).toMatch(/pt-3/) + expect(main?.className).toMatch(/pb-6/) + expect(main?.className).toMatch(/md:py-6/) + }) })