From 7d0705ed80c4ad1d6f581e1aa2eb0091247d944b Mon Sep 17 00:00:00 2001 From: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@buzz.block.builderlab.xyz> Date: Thu, 30 Jul 2026 15:29:04 -0700 Subject: [PATCH] test(desktop): isolate link preview style coverage Co-authored-by: Taylor Ho Signed-off-by: Taylor Ho --- desktop/tests/e2e/messaging.spec.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/desktop/tests/e2e/messaging.spec.ts b/desktop/tests/e2e/messaging.spec.ts index ad649a572..1efa5780d 100644 --- a/desktop/tests/e2e/messaging.spec.ts +++ b/desktop/tests/e2e/messaging.spec.ts @@ -303,7 +303,7 @@ test("markdown tables overflow wide content and fill the message when narrow", a test("link preview style defaults to compact and Rich unfurls descriptions", async ({ page, }) => { - const previewUrl = "https://github.com/block/buzz/pull/3246"; + const previewUrl = "https://github.com/block/buzz/pull/3246?inline=1"; await page.setViewportSize({ width: 800, height: 900 }); await page.goto("/"); await page.getByTestId("channel-general").click(); @@ -337,12 +337,13 @@ test("link preview style defaults to compact and Rich unfurls descriptions", asy '[data-link-preview="github-pull-request"][data-link-preview-inline]', ); await expect(richPreview).toBeVisible(); - await expect( - richPreview.locator('[data-slot="attachment-description"]'), - ).toBeVisible(); await expect(richPreview.locator("[data-link-preview-hostname]")).toHaveText( "github.com", ); + + await openSettings(page, "appearance"); + await page.getByTestId("link-preview-style-trigger").click(); + await page.getByTestId("link-preview-style-compact").click(); }); test("link preview image geometry stays stable while loading", async ({