mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-14 08:53:11 +00:00
B129 — Format campaignMunicipalities E2E spec
This commit is contained in:
parent
4cb21576c2
commit
a92701db68
1 changed files with 6 additions and 2 deletions
|
|
@ -154,7 +154,9 @@ test.describe('Municípios — jornadas por papel', () => {
|
|||
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
||||
|
||||
const trendButton = page.getByRole('button', {
|
||||
name: new RegExp(`^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`),
|
||||
name: new RegExp(
|
||||
`^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`,
|
||||
),
|
||||
})
|
||||
await trendButton.click()
|
||||
const trendPopover = page.locator('[data-slot="popover-content"]')
|
||||
|
|
@ -175,7 +177,9 @@ test.describe('Municípios — jornadas por papel', () => {
|
|||
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
||||
await page
|
||||
.getByRole('button', {
|
||||
name: new RegExp(`^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`),
|
||||
name: new RegExp(
|
||||
`^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`,
|
||||
),
|
||||
})
|
||||
.click()
|
||||
const reopened = page.locator('[data-slot="popover-content"]')
|
||||
|
|
|
|||
Loading…
Reference in a new issue