@@ -68,6 +68,7 @@ pub fn gen_automation_e2e_pos_bonds() -> Automation {
68
68
action: Some ( PressAndRelease ( Button :: Right ) ) ,
69
69
} ,
70
70
] ,
71
+ fee_steps ( ) ,
71
72
vec ! [ Step :: Expect {
72
73
text: Text ( "APPROVE" ) ,
73
74
action: Some ( PressAndRelease ( Button :: Both ) ) ,
@@ -110,6 +111,7 @@ pub fn gen_automation_e2e_pos_bonds() -> Automation {
110
111
action: Some ( PressAndRelease ( Button :: Right ) ) ,
111
112
} ,
112
113
] ,
114
+ fee_steps ( ) ,
113
115
vec ! [ Step :: Expect {
114
116
text: Text ( "APPROVE" ) ,
115
117
action: Some ( PressAndRelease ( Button :: Both ) ) ,
@@ -147,6 +149,7 @@ pub fn gen_automation_e2e_pos_bonds() -> Automation {
147
149
action: Some ( PressAndRelease ( Button :: Right ) ) ,
148
150
} ,
149
151
] ,
152
+ fee_steps ( ) ,
150
153
vec ! [ Step :: Expect {
151
154
text: Text ( "APPROVE" ) ,
152
155
action: Some ( PressAndRelease ( Button :: Both ) ) ,
@@ -184,6 +187,7 @@ pub fn gen_automation_e2e_pos_bonds() -> Automation {
184
187
action: Some ( PressAndRelease ( Button :: Right ) ) ,
185
188
} ,
186
189
] ,
190
+ fee_steps ( ) ,
187
191
vec ! [ Step :: Expect {
188
192
text: Text ( "APPROVE" ) ,
189
193
action: Some ( PressAndRelease ( Button :: Both ) ) ,
@@ -211,6 +215,7 @@ pub fn gen_automation_e2e_pos_bonds() -> Automation {
211
215
action: None ,
212
216
} ] ,
213
217
address_steps ( ) ,
218
+ fee_steps ( ) ,
214
219
vec ! [ Step :: Expect {
215
220
text: Text ( "APPROVE" ) ,
216
221
action: Some ( PressAndRelease ( Button :: Both ) ) ,
@@ -238,6 +243,7 @@ pub fn gen_automation_e2e_pos_bonds() -> Automation {
238
243
action: None ,
239
244
} ] ,
240
245
address_steps ( ) ,
246
+ fee_steps ( ) ,
241
247
vec ! [ Step :: Expect {
242
248
text: Text ( "APPROVE" ) ,
243
249
action: Some ( PressAndRelease ( Button :: Both ) ) ,
@@ -311,6 +317,27 @@ fn address_steps() -> Steps {
311
317
]
312
318
}
313
319
320
+ fn fee_steps ( ) -> Steps {
321
+ [
322
+ vec ! [ Step :: Expect {
323
+ text: Text ( "Fee token" ) ,
324
+ action: None ,
325
+ } ] ,
326
+ address_steps ( ) ,
327
+ vec ! [
328
+ Step :: Expect {
329
+ text: Text ( "Fee" ) ,
330
+ action: None ,
331
+ } ,
332
+ Step :: Expect {
333
+ text: Regex ( r"\d+\.\d+" ) ,
334
+ action: Some ( PressAndRelease ( Button :: Right ) ) ,
335
+ } ,
336
+ ] ,
337
+ ]
338
+ . concat ( )
339
+ }
340
+
314
341
fn gen_automation ( steps : Steps ) -> Automation {
315
342
let mut automation = Automation {
316
343
version : 1 ,
0 commit comments