From 2b8213eff61bf4cc7b5bf48d4a3a6fb8de5dbe13 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Mon, 10 Aug 2026 11:10:46 -0300 Subject: [PATCH] =?UTF-8?q?test(B193):=20adapta=20o=20e2e=20C109=20do=20ma?= =?UTF-8?q?in=20ao=20contrato=20do=20card=20novo=20=E2=80=94=20rodap=C3=A9?= =?UTF-8?q?=20expand=C3=ADvel=20ap=C3=B3s=20registrar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit O teste C109 (merge do main via rebase) esperava o CTA 'Registrar atualização' sempre visível no card; o card B193 troca o rodapé para a linha expandível 'Última atualização' após o primeiro registro (CTA dentro da expansão). A cobertura da C109 (abrir/registrar/fechar/reabrir + sheet de nível) é mantida. --- tests/e2e/campaignMunicipalities.e2e.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index 91c4dc2c..da75d312 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -845,9 +845,12 @@ test.describe('Municípios — cards no celular (B42)', () => { // The toast is intentionally transient; the persisted freshness label is // the stable success contract and must arrive after the server response. - await expect( - card.getByRole('button', { name: `Registrar atualização em ${municipality.name} — hoje` }), - ).toBeVisible() + // B193 — once the município HAS an update, the card footer becomes the + // expandable "Última atualização" row (the register CTA lives inside the + // expansion), so the freshness contract is asserted on the footer itself. + const updateFooter = card.getByRole('button', { name: /^Última atualização/ }) + await expect(updateFooter).toContainText('hoje') + await updateFooter.click() // Reopen: the chrome is rebuilt fresh, and the custom footer comes back. await card.getByRole('button', { name: /^Registrar atualização em/ }).click()