From c66ffd598c72f7e7a9a9bee98347c5583eed9ffd Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 23:30:51 +0000 Subject: [PATCH] fix(campanha): map municipio v2 route in e2e affected manifest Co-authored-by: Francisco Solla --- scripts/lib/e2e-affected-manifest.mjs | 4 ++-- tests/unit/campaignPageChrome.unit.spec.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/lib/e2e-affected-manifest.mjs b/scripts/lib/e2e-affected-manifest.mjs index a360fb84..855302f0 100644 --- a/scripts/lib/e2e-affected-manifest.mjs +++ b/scripts/lib/e2e-affected-manifest.mjs @@ -27,6 +27,7 @@ export const E2E_AFFECTED_MANIFEST = [ { prefixes: [ `${CAMPAIGN_APP}/municipios`, + `${CAMPAIGN_APP}/municipio`, 'src/components/campaign/municipality', 'src/components/campaign/map', 'src/components/campaign/shared/CampaignListOmnibox', @@ -40,8 +41,7 @@ export const E2E_AFFECTED_MANIFEST = [ 'campaignSavedFilters', 'campaignColumnPicker', ], - }, - { + }, { prefixes: [ `${CAMPAIGN_APP}/atividades`, 'src/components/campaign/activity', diff --git a/tests/unit/campaignPageChrome.unit.spec.ts b/tests/unit/campaignPageChrome.unit.spec.ts index 795fd103..93b257a4 100644 --- a/tests/unit/campaignPageChrome.unit.spec.ts +++ b/tests/unit/campaignPageChrome.unit.spec.ts @@ -25,6 +25,9 @@ describe('campaignPageChrome', () => { expect(resolveCampaignPageChrome('/campanha/municipios/cairu', 'coordinator')).toEqual({ title: 'MunicĂ­pios', }) + expect(resolveCampaignPageChrome('/campanha/municipio/cairu/v2', 'coordinator')).toEqual({ + title: 'MunicĂ­pios', + }) }) it('resolves quadro without role-based prose subtitle', () => {