Skip to content

Commit 925d964

Browse files
committed
test(desktop): align prose table coverage with wrapping contract
Signed-off-by: Logan Johnson <[email protected]>
1 parent 4427f2e commit 925d964

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎desktop/tests/e2e/messaging.spec.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ test("long autolink wraps without widening the timeline", async ({ page }) => {
454454
.toBeLessThanOrEqual(0);
455455
});
456456

457-
test("markdown tables overflow wide content and fill the message when narrow", async ({
457+
test("markdown tables wrap long prose and fill the message when narrow", async ({
458458
page,
459459
}) => {
460460
await page.setViewportSize({ width: 900, height: 600 });
@@ -497,13 +497,15 @@ test("markdown tables overflow wide content and fill the message when narrow", a
497497
await expect(wideTable).toBeVisible();
498498
await expect(narrowTable).toBeVisible();
499499

500+
// Long prose should wrap, not force horizontal scrolling. Unavoidable
501+
// many-column overflow is covered separately in markdown-tables.spec.ts.
500502
await expect
501503
.poll(() =>
502504
wideTable.evaluate(
503505
(element) => element.scrollWidth - element.clientWidth,
504506
),
505507
)
506-
.toBeGreaterThan(1);
508+
.toBeLessThanOrEqual(1);
507509
await expect
508510
.poll(() =>
509511
narrowTable.evaluate((element) => {

0 commit comments

Comments
 (0)