mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-27 23:03:11 +00:00
B129 — Restore anchored trend-control E2E regex after rebase
This commit is contained in:
parent
a92701db68
commit
16c2358479
1 changed files with 2 additions and 18 deletions
|
|
@ -154,9 +154,7 @@ 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(
|
name: new RegExp(`^Editar tendência política em ${municipality.name}`),
|
||||||
`^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"]')
|
||||||
|
|
@ -174,14 +172,7 @@ test.describe('Municípios — jornadas por papel', () => {
|
||||||
|
|
||||||
await page.keyboard.press('Escape')
|
await page.keyboard.press('Escape')
|
||||||
await page.reload()
|
await page.reload()
|
||||||
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
await trendButton.click()
|
||||||
await page
|
|
||||||
.getByRole('button', {
|
|
||||||
name: new RegExp(
|
|
||||||
`^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`,
|
|
||||||
),
|
|
||||||
})
|
|
||||||
.click()
|
|
||||||
const reopened = page.locator('[data-slot="popover-content"]')
|
const reopened = page.locator('[data-slot="popover-content"]')
|
||||||
await expect(reopened.getByLabel('Tendência', { exact: true })).toHaveValue('favoravel')
|
await expect(reopened.getByLabel('Tendência', { exact: true })).toHaveValue('favoravel')
|
||||||
await expect(reopened.getByLabel('Justificativa')).toHaveValue(note)
|
await expect(reopened.getByLabel('Justificativa')).toHaveValue(note)
|
||||||
|
|
@ -438,11 +429,8 @@ test.describe('Municípios — FAB ações rápidas mobile (B126)', () => {
|
||||||
await page.goto(
|
await page.goto(
|
||||||
`${campaign.baseURL}/campanha/municipios?q=${encodeURIComponent(municipality.name)}`,
|
`${campaign.baseURL}/campanha/municipios?q=${encodeURIComponent(municipality.name)}`,
|
||||||
)
|
)
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
||||||
|
|
||||||
>>>>>>> 29b49e63 (B129 — Align municipality E2E with page chrome and scoped trend control)
|
|
||||||
const fab = page.getByRole('button', { name: 'Ações rápidas' })
|
const fab = page.getByRole('button', { name: 'Ações rápidas' })
|
||||||
await expect(fab).toBeVisible()
|
await expect(fab).toBeVisible()
|
||||||
await expect(page.getByLabel('Buscar na campanha')).toHaveCount(0)
|
await expect(page.getByLabel('Buscar na campanha')).toHaveCount(0)
|
||||||
|
|
@ -493,11 +481,7 @@ test.describe('Municípios — FAB overlay polish (B126)', () => {
|
||||||
|
|
||||||
await campaign.login(page, coordinator.email!, coordinator.password)
|
await campaign.login(page, coordinator.email!, coordinator.password)
|
||||||
await page.goto(`${campaign.baseURL}/campanha/municipios`)
|
await page.goto(`${campaign.baseURL}/campanha/municipios`)
|
||||||
<<<<<<< HEAD
|
|
||||||
await expect(page.getByRole('button', { name: 'Ações rápidas' })).toBeVisible()
|
|
||||||
=======
|
|
||||||
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
|
||||||
>>>>>>> 29b49e63 (B129 — Align municipality E2E with page chrome and scoped trend control)
|
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'Ações rápidas' }).click()
|
await page.getByRole('button', { name: 'Ações rápidas' }).click()
|
||||||
const overlay = page.locator('#CampaignQuickActionsOverlay')
|
const overlay = page.locator('#CampaignQuickActionsOverlay')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue