From c7aac4da1be2dfbeb24565a58b5882de2a58b029 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 31 Jul 2026 01:49:56 +0000 Subject: [PATCH] test: pin home search municipality scope fixtures to distinct slugs --- tests/int/homeSearchMunicipalities.int.spec.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/int/homeSearchMunicipalities.int.spec.ts b/tests/int/homeSearchMunicipalities.int.spec.ts index cbbbb447..5ad556fa 100644 --- a/tests/int/homeSearchMunicipalities.int.spec.ts +++ b/tests/int/homeSearchMunicipalities.int.spec.ts @@ -48,12 +48,17 @@ describe('searchHomeMunicipalities (B48)', () => { const advisor = await fixtures.createCampaignUser('advisor') const coordinator = await fixtures.createCampaignUser('coordinator') - const administered = await fixtures.getMunicipality() - const other = await fixtures.getMunicipality() + const administered = await fixtures.getMunicipality('cairu') + const other = await fixtures.getMunicipality('feira-de-santana') await fixtures.assignMunicipalityAdvisors(administered.id, [advisor.id]) +<<<<<<< HEAD const otherQuery = distinctWordStartQuery(other.name, administered.name) const administeredQuery = distinctWordStartQuery(administered.name, other.name) +======= + const otherQuery = 'Feira' + const administeredQuery = 'Cairu' +>>>>>>> 798c289 (test: pin home search municipality scope fixtures to distinct slugs) const advisorResult = await searchHomeMunicipalities(payload, advisor, otherQuery) expect(advisorResult.municipalities.map((hit) => hit.slug)).toEqual([])