mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
fix(tests): allocate homeSearch municipalities; scope B42 trend drawer
This commit is contained in:
parent
442eb218a2
commit
c86ec5d552
2 changed files with 4 additions and 3 deletions
|
|
@ -382,7 +382,8 @@ test.describe('Municípios — cards no celular (B42)', () => {
|
||||||
await expect(page.getByRole('link', { name: 'Abrir município' })).toHaveCount(0)
|
await expect(page.getByRole('link', { name: 'Abrir município' })).toHaveCount(0)
|
||||||
|
|
||||||
await card.getByRole('button', { name: 'Editar tendência política' }).click()
|
await card.getByRole('button', { name: 'Editar tendência política' }).click()
|
||||||
const drawer = page.locator('[data-slot="drawer-popup"]')
|
// B79 keeps CampaignQuickActionsDrawer mounted (modal=false); scope to the trend dialog.
|
||||||
|
const drawer = page.getByRole('dialog', { name: 'Editar tendência' })
|
||||||
await expect(drawer).toBeVisible()
|
await expect(drawer).toBeVisible()
|
||||||
await expect(drawer.getByText(municipality.name, { exact: true })).toBeVisible()
|
await expect(drawer.getByText(municipality.name, { exact: true })).toBeVisible()
|
||||||
await expect(page).toHaveURL(listURL)
|
await expect(page).toHaveURL(listURL)
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ describe('searchHomeMunicipalities (B48)', () => {
|
||||||
const advisor = await fixtures.createCampaignUser('advisor')
|
const advisor = await fixtures.createCampaignUser('advisor')
|
||||||
const coordinator = await fixtures.createCampaignUser('coordinator')
|
const coordinator = await fixtures.createCampaignUser('coordinator')
|
||||||
|
|
||||||
const administered = await fixtures.getMunicipality('cairu')
|
const administered = await fixtures.getMunicipality()
|
||||||
const other = await fixtures.getMunicipality('feira-de-santana')
|
const other = await fixtures.getMunicipality()
|
||||||
await fixtures.assignMunicipalityAdvisors(administered.id, [advisor.id])
|
await fixtures.assignMunicipalityAdvisors(administered.id, [advisor.id])
|
||||||
|
|
||||||
const otherQuery = distinctWordStartQuery(other.name, administered.name)
|
const otherQuery = distinctWordStartQuery(other.name, administered.name)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue