From cfb27296f623b346b1e2392d8968ec797145143a Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Sat, 8 Aug 2026 18:11:09 -0300 Subject: [PATCH] test(campaignActivity): fecha o chat antes do passo mobile da agenda (B167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit B167 migra um chat aberto no painel desktop para o drawer full-screen ao encolher a viewport — o drawer cobriria o calendário no passo mobile deste spec. Fecha o chat antes do resize para garantir a superfície de teste. --- tests/e2e/campaignActivity.e2e.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/e2e/campaignActivity.e2e.spec.ts b/tests/e2e/campaignActivity.e2e.spec.ts index e3544f8a..fc37c9c7 100644 --- a/tests/e2e/campaignActivity.e2e.spec.ts +++ b/tests/e2e/campaignActivity.e2e.spec.ts @@ -125,6 +125,13 @@ test.describe('Agenda — calendário operacional', () => { ) await expect(page.getByText(title, { exact: true })).toBeVisible() + // B167: when the viewport shrinks to mobile, a chat that was open on the + // desktop panel migrates to the open full-screen drawer — which would cover + // the agenda. Close it first so this mobile-layout step is unobstructed. + await page + .getByRole('button', { name: 'Fechar', exact: true }) + .filter({ visible: true }) + .click() await page.setViewportSize({ width: 390, height: 844 }) await page.getByRole('tab', { name: /lista/i }).click() await expect(page.getByText(title, { exact: true })).toBeVisible()