Skip to content

Commit 400ed68

Browse files
committed
test: relax brain timestamp opacity assertion to match updated styling
The brain section timestamp was changed from /60 to /50 opacity in the design polish commit. Update the test regex to match any numeric opacity value instead of hardcoding /60.
1 parent 87ec8ba commit 400ed68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ui/brain-section-freshness-indicator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe("Brain section freshness indicator — SectionHeader", () => {
9898
// AC2: Timestamp uses 11px mono muted styling consistent with chat timestamps
9999
it("uses the metadata timestamp styling class", () => {
100100
// Should have the exact metadata styling for the timestamp
101-
expect(brainSrc).toMatch(/text-\[11px\].*font-mono.*text-muted-foreground\/60/);
101+
expect(brainSrc).toMatch(/text-\[11px\].*font-mono.*text-muted-foreground\/\d+/);
102102
expect(brainSrc).toMatch(/tabular-nums/);
103103
});
104104

0 commit comments

Comments
 (0)