@@ -22,9 +22,14 @@ public async Task Show_Ok()
22
22
pb . Add ( a => a . ConfirmButtonColor , Color . Danger ) ;
23
23
pb . Add ( a => a . Icon , "fa-solid fa-font-awesome" ) ;
24
24
pb . Add ( a => a . Text , "Test_Text" ) ;
25
+ pb . Add ( a => a . CloseButtonIcon , "fa-solid fa-xmark" ) ;
26
+ pb . Add ( a => a . ConfirmButtonIcon , "fa-solid fa-check" ) ;
25
27
} ) ;
26
28
} ) ;
27
29
30
+ cut . Contains ( "fa-solid fa-xmark" ) ;
31
+ cut . Contains ( "fa-solid fa-check" ) ;
32
+
28
33
// Show
29
34
var button = cut . Find ( "div" ) ;
30
35
await cut . InvokeAsync ( ( ) =>
@@ -33,7 +38,7 @@ await cut.InvokeAsync(() =>
33
38
} ) ;
34
39
35
40
// Close
36
- var buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
41
+ var buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
37
42
await cut . InvokeAsync ( ( ) =>
38
43
{
39
44
buttons [ 0 ] . Click ( ) ;
@@ -45,7 +50,7 @@ await cut.InvokeAsync(() =>
45
50
{
46
51
button . Click ( ) ;
47
52
} ) ;
48
- buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
53
+ buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
49
54
await cut . InvokeAsync ( ( ) =>
50
55
{
51
56
buttons [ 1 ] . Click ( ) ;
@@ -97,7 +102,7 @@ await cut.InvokeAsync(() =>
97
102
} ) ;
98
103
99
104
// Close
100
- buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
105
+ buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
101
106
await cut . InvokeAsync ( ( ) =>
102
107
{
103
108
buttons [ 0 ] . Click ( ) ;
@@ -111,7 +116,7 @@ await cut.InvokeAsync(() =>
111
116
{
112
117
button . Click ( ) ;
113
118
} ) ;
114
- buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
119
+ buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
115
120
await cut . InvokeAsync ( ( ) =>
116
121
{
117
122
buttons [ 1 ] . Click ( ) ;
@@ -132,7 +137,7 @@ await cut.InvokeAsync(() =>
132
137
} ) ;
133
138
134
139
// Confirm
135
- buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
140
+ buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
136
141
await cut . InvokeAsync ( ( ) =>
137
142
{
138
143
buttons [ 1 ] . Click ( ) ;
@@ -158,7 +163,7 @@ await cut.InvokeAsync(() =>
158
163
} ) ;
159
164
160
165
// async confirm
161
- buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
166
+ buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
162
167
_ = cut . InvokeAsync ( ( ) =>
163
168
{
164
169
buttons [ 1 ] . Click ( ) ;
@@ -178,7 +183,7 @@ await cut.InvokeAsync(() =>
178
183
} ) ;
179
184
180
185
// async confirm
181
- buttons = cut . FindAll ( ".popover-confirm-buttons div " ) ;
186
+ buttons = cut . FindAll ( ".popover-confirm-buttons button " ) ;
182
187
await cut . InvokeAsync ( ( ) =>
183
188
{
184
189
buttons [ 1 ] . Click ( ) ;
@@ -248,10 +253,12 @@ public void Trigger_Ok()
248
253
}
249
254
250
255
[ Fact ]
251
- public void ConfirmIcon_Ok ( )
256
+ public void Icon_Ok ( )
252
257
{
253
258
var cut = Context . RenderComponent < PopConfirmButtonContent > ( ) ;
254
259
cut . Contains ( "text-info fa-solid fa-circle-exclamation" ) ;
260
+ cut . Contains ( "fa-solid fa-xmark" ) ;
261
+ cut . Contains ( "fa-solid fa-check" ) ;
255
262
}
256
263
257
264
[ Fact ]
0 commit comments