From fc4c7bb82c3652b861198e437680cd00e5fb9cf6 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Wed, 25 Nov 2026 11:21:23 +0100 Subject: [PATCH] :bug: Expect the other padding sides at 0 in the dimension token test (#13321) Since #13266, a padding change on a layout without padding fills the four sides, so the sides not chosen become 0 instead of staying nil. The test from #13215 still expected nil and failed on develop. AI-assisted-by: claude-opus-5-5 --- .../tokens/logic/token_dimension_application_test.cljs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/test/frontend_tests/tokens/logic/token_dimension_application_test.cljs b/frontend/test/frontend_tests/tokens/logic/token_dimension_application_test.cljs index 105c1deffe..6fd7dace84 100644 --- a/frontend/test/frontend_tests/tokens/logic/token_dimension_application_test.cljs +++ b/frontend/test/frontend_tests/tokens/logic/token_dimension_application_test.cljs @@ -115,11 +115,9 @@ (t/is (= {:p1 "dimension.md" :p3 "dimension.md" :row-gap "dimension.md"} (:applied-tokens layout'))) - (t/testing "sets the chosen paddings only" - (t/is (= 24 (get-in layout' [:layout-padding :p1]))) - (t/is (= 24 (get-in layout' [:layout-padding :p3]))) - (t/is (= (get-in layout [:layout-padding :p2]) - (get-in layout' [:layout-padding :p2])))) + (t/testing "sets the chosen paddings and leaves the other sides at 0" + (t/is (= {:p1 24 :p2 0 :p3 24 :p4 0} + (:layout-padding layout')))) (t/testing "sets the chosen gap only" (t/is (= 24 (get-in layout' [:layout-gap :row-gap])))