File tree 1 file changed +5
-4
lines changed
src/quo2/components/list_items/token_value
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
(ns quo2.components.list-items.token-value.component-spec
2
2
(:require
3
+ [quo2.foundations.colors :as colors]
3
4
[test-helpers.component :as h]
4
5
[quo2.components.list-items.token-value.view :as token-value]))
5
6
18
19
(h/is-truthy (h/get-by-text " Status" )))
19
20
20
21
(h/test " Pressed state"
21
- (h/render [token-value/view
22
+ (h/render [token-value/view
22
23
{:token :snt
23
24
:state :pressed
24
25
:status :empty
28
29
:fiat-value " €0.00"
29
30
:percentage-change " 0.00"
30
31
:fiat-change " €0.00" }}])
31
- (h/has-style (h/get-by-label-text :container )
32
- { :background -color " rgba(42,74,245,0.05) " }))
32
+ (h/has-style (h/get-by-label-text :container )
33
+ { :backgroundColor ( colors/custom -color-by-theme :blue 50 50 5 5 ) }))
33
34
34
35
(h/test " Active state"
35
36
(h/render [token-value/view
43
44
:percentage-change " 0.00"
44
45
:fiat-change " €0.00" }}])
45
46
(h/has-style (h/get-by-label-text :container )
46
- {:background -color " rgba(42,74,245,0.1) " }))
47
+ {:backgroundColor ( colors/custom -color-by-theme :blue 50 50 10 10 ) }))
47
48
48
49
(h/test " Status change"
49
50
(h/render [token-value/view
You can’t perform that action at this time.
0 commit comments