fix(e2e): exact match in campaignPageChrome for mobile subtitles

Mobile top bar puts title + subtitle in the same chrome slot; substring
getByText('Municípios') also hit 'Os 435 municípios…'.
This commit is contained in:
Cursor Agent 2026-08-02 20:11:25 +00:00
parent 62673367c9
commit 8e9864362b
No known key found for this signature in database

View file

@ -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 }