mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
test(desktop): expect square compact link previews
Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
co-authored by
Taylor Ho
parent
a2ffdf8f80
commit
a4c887ed96
@@ -516,7 +516,7 @@ test("link preview no-image layout keeps compact height", async ({ page }) => {
|
||||
}
|
||||
});
|
||||
|
||||
test("supported link previews keep the message link visible", async ({
|
||||
test("supported Compact link previews keep the message link visible with square outer corners", async ({
|
||||
page,
|
||||
}) => {
|
||||
const previewUrl = "https://github.com/block/sprout/pull/1334";
|
||||
@@ -534,8 +534,7 @@ test("supported link previews keep the message link visible", async ({
|
||||
).toBeVisible();
|
||||
const previewCard = row.locator('[data-link-preview="github-pull-request"]');
|
||||
await expect(previewCard).toBeVisible();
|
||||
await expectCornerRadiusPx(previewCard, 16);
|
||||
await expectSmoothCorners(previewCard);
|
||||
await expectCornerRadiusPx(previewCard, 0);
|
||||
});
|
||||
|
||||
test("send multiple messages in sequence", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user