mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-03 22:13:06 +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()
|
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
||||||
|
|
||||||
const trendButton = page.getByRole('button', {
|
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()
|
await trendButton.click()
|
||||||
const trendPopover = page.locator('[data-slot="popover-content"]')
|
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 expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
||||||
await page
|
await page
|
||||||
.getByRole('button', {
|
.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()
|
.click()
|
||||||
const reopened = page.locator('[data-slot="popover-content"]')
|
const reopened = page.locator('[data-slot="popover-content"]')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue