test(desktop): isolate link preview style coverage

Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
2026-07-30 23:21:05 -07:00
co-authored by Taylor Ho
parent cc20f19552
commit 7d0705ed80
+5 -4
View File
@@ -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 ({