test(e2e): adapt demand form activity picker assertion (C11)

This commit is contained in:
Cursor Agent 2026-08-01 07:02:06 +00:00
parent 2ac6f4c8fa
commit 2dcd3ab3f8
No known key found for this signature in database

View file

@ -42,7 +42,8 @@ test.describe('Atividades — registro-fundação', () => {
await expect(page.getByRole('link', { name: materialDemand })).toBeVisible()
await page.getByRole('link', { name: 'Adicionar demanda' }).click()
await expect(page.getByLabel('Atividade relacionada')).toHaveValue(/\d+/)
await expect(page.locator('input[name="activityId"]')).toHaveValue(/\d+/)
await expect(page.getByLabel('Atividade relacionada')).toContainText(activityTitle)
await expect(page.getByLabel('Município')).toHaveValue(String(municipality.id))
await page.goto(`${campaign.baseURL}/campanha/municipios/${municipality.slug}?tab=updates`)