B95 — unit test for mobile wizard shell padding

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-08-01 10:53:33 +00:00
parent cce3d4ab3e
commit 7b3d3096cd
No known key found for this signature in database

View file

@ -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/)
})
})