B95 — unit test for mobile wizard shell padding
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
parent
cce3d4ab3e
commit
7b3d3096cd
1 changed files with 15 additions and 0 deletions
|
|
@ -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/)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue