mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 13:13:05 +00:00
test(e2e): adapt demand form activity picker assertion (C11)
This commit is contained in:
parent
2ac6f4c8fa
commit
2dcd3ab3f8
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ test.describe('Atividades — registro-fundação', () => {
|
||||||
await expect(page.getByRole('link', { name: materialDemand })).toBeVisible()
|
await expect(page.getByRole('link', { name: materialDemand })).toBeVisible()
|
||||||
|
|
||||||
await page.getByRole('link', { name: 'Adicionar demanda' }).click()
|
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 expect(page.getByLabel('Município')).toHaveValue(String(municipality.id))
|
||||||
|
|
||||||
await page.goto(`${campaign.baseURL}/campanha/municipios/${municipality.slug}?tab=updates`)
|
await page.goto(`${campaign.baseURL}/campanha/municipios/${municipality.slug}?tab=updates`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue