mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-28 15:43:10 +00:00
style: prettier e2e wizard specs
This commit is contained in:
parent
ca18ce0f17
commit
593b2273c2
2 changed files with 3 additions and 9 deletions
|
|
@ -123,9 +123,7 @@ test.describe('Início — catálogo de ações (B45)', () => {
|
||||||
await page.getByRole('link', { name: 'Ajustar votos', exact: true }).click()
|
await page.getByRole('link', { name: 'Ajustar votos', exact: true }).click()
|
||||||
await page.waitForURL(/\/campanha\/acoes\/atualizar-votos/)
|
await page.waitForURL(/\/campanha\/acoes\/atualizar-votos/)
|
||||||
await expect(page.getByLabel('Buscar município')).toBeVisible()
|
await expect(page.getByLabel('Buscar município')).toBeVisible()
|
||||||
await expect(
|
await expect(page.getByRole('region', { name: WIZARD_MUNICIPALITY_STEP_TITLE })).toBeVisible()
|
||||||
page.getByRole('region', { name: WIZARD_MUNICIPALITY_STEP_TITLE }),
|
|
||||||
).toBeVisible()
|
|
||||||
|
|
||||||
await page.goto('/campanha')
|
await page.goto('/campanha')
|
||||||
await page.getByRole('link', { name: 'Ver esquecidos', exact: true }).click()
|
await page.getByRole('link', { name: 'Ver esquecidos', exact: true }).click()
|
||||||
|
|
@ -171,9 +169,7 @@ test.describe('Wizard — busca município (B60)', () => {
|
||||||
await campaign.login(page, coordinator.email!, coordinator.password)
|
await campaign.login(page, coordinator.email!, coordinator.password)
|
||||||
await page.goto('/campanha/acoes/atualizar-votos')
|
await page.goto('/campanha/acoes/atualizar-votos')
|
||||||
await expect(page.getByLabel('Buscar município')).toBeVisible()
|
await expect(page.getByLabel('Buscar município')).toBeVisible()
|
||||||
await expect(
|
await expect(page.getByRole('region', { name: WIZARD_MUNICIPALITY_STEP_TITLE })).toBeVisible()
|
||||||
page.getByRole('region', { name: WIZARD_MUNICIPALITY_STEP_TITLE }),
|
|
||||||
).toBeVisible()
|
|
||||||
|
|
||||||
const search = page.getByLabel('Buscar município')
|
const search = page.getByLabel('Buscar município')
|
||||||
await search.fill(municipality.name)
|
await search.fill(municipality.name)
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,7 @@ test.describe('Wizard — header mobile (B75)', () => {
|
||||||
await expect(topBar.getByText('Ajustar votos', { exact: true })).toBeVisible()
|
await expect(topBar.getByText('Ajustar votos', { exact: true })).toBeVisible()
|
||||||
await expect(page.getByRole('heading', { name: WIZARD_MUNICIPALITY_STEP_TITLE })).toHaveCount(0)
|
await expect(page.getByRole('heading', { name: WIZARD_MUNICIPALITY_STEP_TITLE })).toHaveCount(0)
|
||||||
await expect(page.getByLabel('Buscar município')).toBeVisible()
|
await expect(page.getByLabel('Buscar município')).toBeVisible()
|
||||||
await expect(
|
await expect(page.getByRole('region', { name: WIZARD_MUNICIPALITY_STEP_TITLE })).toBeVisible()
|
||||||
page.getByRole('region', { name: WIZARD_MUNICIPALITY_STEP_TITLE }),
|
|
||||||
).toBeVisible()
|
|
||||||
await expect(page.getByRole('link', { name: 'Sair da ação' })).toBeVisible()
|
await expect(page.getByRole('link', { name: 'Sair da ação' })).toBeVisible()
|
||||||
await expect(page.getByRole('link', { name: /Voltar/ })).toHaveCount(0)
|
await expect(page.getByRole('link', { name: /Voltar/ })).toHaveCount(0)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue