From 8e9864362b51ed7ec764a95e85e9c3aa2fd5e4cf Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 20:11:25 +0000 Subject: [PATCH] fix(e2e): exact match in campaignPageChrome for mobile subtitles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mobile top bar puts title + subtitle in the same chrome slot; substring getByText('Municípios') also hit 'Os 435 municípios…'. --- tests/e2e/fixtures/campaignE2EFixtures.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/fixtures/campaignE2EFixtures.ts b/tests/e2e/fixtures/campaignE2EFixtures.ts index 8147f765..de9a5f5e 100644 --- a/tests/e2e/fixtures/campaignE2EFixtures.ts +++ b/tests/e2e/fixtures/campaignE2EFixtures.ts @@ -565,7 +565,11 @@ export const campaignPageChrome = (page: Page, title: string) => page .locator('[data-slot="campaign-page-chrome"]') .filter({ visible: true }) +<<<<<<< HEAD .getByText(title) .first() +======= + .getByText(title, { exact: true }) +>>>>>>> ce710645 (fix(e2e): exact match in campaignPageChrome for mobile subtitles) export { expect }