mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-23 06:33:06 +00:00
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:
parent
62673367c9
commit
8e9864362b
1 changed files with 4 additions and 0 deletions
|
|
@ -565,7 +565,11 @@ export const campaignPageChrome = (page: Page, title: string) =>
|
||||||
page
|
page
|
||||||
.locator('[data-slot="campaign-page-chrome"]')
|
.locator('[data-slot="campaign-page-chrome"]')
|
||||||
.filter({ visible: true })
|
.filter({ visible: true })
|
||||||
|
<<<<<<< HEAD
|
||||||
.getByText(title)
|
.getByText(title)
|
||||||
.first()
|
.first()
|
||||||
|
=======
|
||||||
|
.getByText(title, { exact: true })
|
||||||
|
>>>>>>> ce710645 (fix(e2e): exact match in campaignPageChrome for mobile subtitles)
|
||||||
|
|
||||||
export { expect }
|
export { expect }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue