From e8d88803feb20c8d1ff621b5ecca38227c40e68b Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Thu, 24 Sep 2026 03:11:35 -0300 Subject: [PATCH] =?UTF-8?q?test(S38):=20ajusta=20o=20board=20misto=20e=20a?= =?UTF-8?q?=20navega=C3=A7=C3=A3o=20do=20e2e=20do=20cat=C3=A1logo=20(Relat?= =?UTF-8?q?ed=20#1304)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/e2e/frontendConteudos.e2e.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/e2e/frontendConteudos.e2e.spec.ts b/tests/e2e/frontendConteudos.e2e.spec.ts index 375ce46c..8ad7af3a 100644 --- a/tests/e2e/frontendConteudos.e2e.spec.ts +++ b/tests/e2e/frontendConteudos.e2e.spec.ts @@ -225,8 +225,11 @@ test.describe('Frontend Central de Conteúdos (S27)', () => { // section of their own (the card item and the pieces share one grid). await expect(page.locator('[data-content-piece-invite]')).toHaveCount(0) await expect(page.locator('[data-card-model]')).toHaveCount(6) + // The video piece shares the full-card grid with the models (the photo is a + // compact row below): the models are items of the board, not a section. const board = page.locator('[data-card-model]').first().locator('xpath=..') - await expect(board.locator('article[data-content-piece]')).toHaveCount(2) + await expect(board.locator('article[data-content-piece]')).toHaveCount(1) + await expect(board.locator('[data-card-model]')).toHaveCount(6) await expect(page.locator('[data-card-model="time-de-voce"]')).toHaveAttribute( 'href', '/cards?model=time-de-voce', @@ -357,6 +360,8 @@ test.describe('Frontend Central de Conteúdos (S27)', () => { // The item routes to the studio with the model chosen and counts the opening // through the anonymous beacon (never a piece event). + await page.goto('/conteudos?tipo=card') + await waitForSettledPage(page) const openingBeacon = page.waitForRequest((candidate) => { if (!candidate.url().includes('/api/content-events')) return false try {