Skip to content

Commit 0579236

Browse files
test(ui): tolerate browser font metrics
1 parent d86581a commit 0579236

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/src/pages/chat/chat-responsive.browser.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,10 +2044,10 @@ describeBrowserLayout.concurrent("chat responsive browser layout", () => {
20442044

20452045
expect(spacing).toHaveLength(2);
20462046
for (const { horizontalGap, heightDelta } of spacing) {
2047-
// Include the chip border/inset, but keep punctuation within a quarter
2048-
// of the 14px prose size and the chip close to the prose line box.
2047+
// Include the chip border/inset, but keep both measurements within a
2048+
// quarter of the 14px prose size across browser font metrics.
20492049
expect(horizontalGap).toBeLessThanOrEqual(3.75);
2050-
expect(heightDelta).toBeLessThanOrEqual(3);
2050+
expect(heightDelta).toBeLessThanOrEqual(3.75);
20512051
}
20522052
} finally {
20532053
await closeBrowserPage(page);

0 commit comments

Comments
 (0)