teqo-backup/tests/unit/campaignWizardCopy.unit.spec.ts
Francisco Ignácio Fontoura Solla 037785b280 B75: wizard mobile header chrome on Mandate Red bar.
Publish flow navigation from CampaignWizardShell via layout-level chrome so wizards no longer stack a second sticky header under the app bar.
2026-07-30 03:26:54 -03:00

22 lines
856 B
TypeScript

import { describe, expect, it } from 'vitest'
import {
WIZARD_DISMISS_ARIA_LABEL,
wizardFlowChromeAriaLabel,
wizardFlowTitleForSlug,
wizardMunicipalityChromeAriaLabel,
} from '@/lib/campaignWizardCopy'
describe('campaignWizardCopy', () => {
it('maps wizard slugs to home action flow titles', () => {
expect(wizardFlowTitleForSlug('atualizar-votos')).toBe('Ajustar votos')
expect(wizardFlowTitleForSlug('registrar-sinal')).toBe('Registrar sinal')
expect(wizardFlowTitleForSlug('inventado')).toBe('Continuar')
})
it('builds wizard chrome aria labels from shared copy', () => {
expect(wizardFlowChromeAriaLabel('Ajustar votos')).toBe('Ação: Ajustar votos')
expect(wizardMunicipalityChromeAriaLabel('Cairu')).toBe('Município em atualização: Cairu')
expect(WIZARD_DISMISS_ARIA_LABEL).toBe('Sair da ação')
})
})