mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
fix(e2e): C142 — settle dossiê tab before asserting leadership link in advisor-scopes journey
The 'advisor scopes municipalities' journey casts many steps; the dossiê leadership-list chunk can land after goto settles under 4-worker load, tripping the leadership-link visibility assert. Adds the C106 S: settle before the assert and scopes with .first() against transient duplicates.
This commit is contained in:
parent
2a101c87ab
commit
7de6c01b10
1 changed files with 6 additions and 1 deletions
|
|
@ -701,7 +701,12 @@ test.describe('Municípios — jornadas por papel', () => {
|
|||
|
||||
// Staff declare votes on behalf of the leadership.
|
||||
await page.goto(`${campaign.baseURL}/campanha/municipios/${administered.slug}?tab=leaderships`)
|
||||
await expect(page.getByRole('link', { name: contact.name })).toBeVisible()
|
||||
// C106 — the dossiê tab streams a transient `S:` shell copy; under load the
|
||||
// leadership-list chunk can land after `goto` settles, so let the stream
|
||||
// commit before asserting the leadership link (same class as the `:115`
|
||||
// editar checkbox and the C142 FAB).
|
||||
await page.waitForFunction(() => document.querySelectorAll('div[id^="S:"]').length === 0)
|
||||
await expect(page.getByRole('link', { name: contact.name }).first()).toBeVisible()
|
||||
await page.getByLabel('Quantos votos a liderança traz neste município?').fill('250')
|
||||
await page.getByRole('button', { name: 'Declarar' }).click()
|
||||
await expect(page.getByText('Declaração de votos registrada.')).toBeVisible()
|
||||
|
|
|
|||
Loading…
Reference in a new issue