mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-03 13:53:06 +00:00
fix(e2e): scope B27 advisors reopen after reload by município
Loose "Editar assessores" matched multiple list rows after reload under parallel fixtures — pin to the claimed municipality name like the open click.
This commit is contained in:
parent
a723a41794
commit
1a722e8882
1 changed files with 5 additions and 1 deletions
|
|
@ -147,7 +147,11 @@ test.describe('Municípios — jornadas por papel', () => {
|
||||||
// Persistence: reload and reopen to confirm the server, not just local
|
// Persistence: reload and reopen to confirm the server, not just local
|
||||||
// state, now holds the assignment.
|
// state, now holds the assignment.
|
||||||
await page.reload()
|
await page.reload()
|
||||||
await page.getByRole('button', { name: 'Editar assessores' }).click()
|
await page
|
||||||
|
.getByRole('button', {
|
||||||
|
name: new RegExp(`^Editar assessores em ${municipality.name}\\b`),
|
||||||
|
})
|
||||||
|
.click()
|
||||||
await expect(
|
await expect(
|
||||||
page.locator('[data-slot="popover-content"]').getByRole('button', {
|
page.locator('[data-slot="popover-content"]').getByRole('button', {
|
||||||
name: `Remover ${advisor.name}`,
|
name: `Remover ${advisor.name}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue