From 156c4574b527a9133345bd856c2411b0585d562e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 18 Jul 2026 10:25:42 +0200 Subject: [PATCH] test(admin): match the token-overview meta assertion to the text-xs floor The mobile meta lines moved off the sub-xs px size; anchor the wrap assertion on the muted text-xs paragraph instead of the old px class. --- .../admin/__tests__/api-token-overview-responsive.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/admin/__tests__/api-token-overview-responsive.test.tsx b/src/components/admin/__tests__/api-token-overview-responsive.test.tsx index 16a1eeff5..1991a9957 100644 --- a/src/components/admin/__tests__/api-token-overview-responsive.test.tsx +++ b/src/components/admin/__tests__/api-token-overview-responsive.test.tsx @@ -153,14 +153,14 @@ describe("ApiTokenOverviewSection — responsive", () => { const html = render(); const mobileMatch = html.match(/]*md:hidden[^>]*>([\s\S]*?)<\/ul>/); expect(mobileMatch).not.toBeNull(); - // The Last-used + Created lines use

— no - // whitespace-nowrap so a long German date+time can flow onto a + // The Last-used + Created lines are muted

meta — + // no whitespace-nowrap so a long German date+time can flow onto a // second line within the card. The shadcn `` primitive // does carry `whitespace-nowrap`, which is fine for the short // permission strings we render — those are scoped to a flex-wrap // container that line-breaks at the badge boundary. expect(mobileMatch![1]).toMatch( - /]*text-\[11px\][^>]*>(?![^<]*whitespace-nowrap)/, + /]*text-muted-foreground[^>]*text-xs[^>]*>(?![^<]*whitespace-nowrap)/, ); }); });