teqo-backup/tests/unit/wizardLeadershipStep.unit.spec.ts
Francisco Ignácio Fontoura Solla dbd9d0fa3e feat(campanha): ship B70 leadership update wizard (grid + short form).
Replaces the post-municipality stub with a full wizard: tile grid, contact+leadership writes, entryAction skip, and Continuar after save.
2026-07-30 03:51:25 -03:00

17 lines
585 B
TypeScript

import { describe, expect, it } from 'vitest'
import { showLeadershipWizardSkip } from '@/lib/wizardLeadershipContract'
describe('showLeadershipWizardSkip', () => {
it('hides skip for standalone entry (implicit update-leadership)', () => {
expect(showLeadershipWizardSkip(undefined)).toBe(false)
})
it('hides skip when entry is update-leadership', () => {
expect(showLeadershipWizardSkip('update-leadership')).toBe(false)
})
it('shows skip when embedded from another wizard action', () => {
expect(showLeadershipWizardSkip('update-votes')).toBe(true)
})
})