@@ -15,13 +15,17 @@ export default class OperationDetailsPage {
1515 LOCK : "Locked" ,
1616 } ;
1717 operationDetailsConfirmed = "operation-details-text-confirmed" ;
18+ operationDetailsAccount = "operationDetails-account" ;
19+ operationDetailsAmount = "operationDetails-amount" ;
20+ operationDetailsIdentifier = "operationDetails-identifier" ;
21+ operationDetailsDate = "operationDetails-date" ;
1822 operationDetailsScrollViewId = "operation-details-scroll-view" ;
1923
2024 title = ( ) => getElementById ( this . titleId ) ;
21- account = ( ) => getElementById ( "operationDetails-account" ) ;
22- amount = ( ) => getElementById ( "operationDetails-amount" ) ;
23- operation = ( ) => getElementById ( "operationDetails-identifier" ) ;
24- date = ( ) => getElementById ( "operationDetails-date" ) ;
25+ account = ( ) => getElementById ( this . operationDetailsAccount ) ;
26+ amount = ( ) => getElementById ( this . operationDetailsAmount ) ;
27+ operation = ( ) => getElementById ( this . operationDetailsIdentifier ) ;
28+ date = ( ) => getElementById ( this . operationDetailsDate ) ;
2529
2630 @Step ( "Wait for operation details" )
2731 async waitForOperationDetails ( ) {
@@ -88,6 +92,7 @@ export default class OperationDetailsPage {
8892 await detoxExpect ( this . account ( ) ) . toBeVisible ( ) ;
8993 await detoxExpect ( this . account ( ) ) . toHaveText ( currencyName + " 1" ) ;
9094 await detoxExpect ( this . amount ( ) ) . toBeVisible ( ) ;
95+ await scrollToId ( this . operationDetailsIdentifier , this . operationDetailsScrollViewId ) ;
9196 await detoxExpect ( this . operation ( ) ) . toBeVisible ( ) ;
9297 await detoxExpect ( this . date ( ) ) . toBeVisible ( ) ;
9398 }
0 commit comments