@@ -5,50 +5,58 @@ class WalletDetailsPage {
55
66 private readonly walletDetailsPage = '.wallet-details-page' ;
77
8- private readonly addAccountButton = '.wallet-details-page__add-account-button' ;
8+ private readonly addAccountButton =
9+ '.wallet-details-page__add-account-button' ;
910
1011 private readonly accountTypeModal = '.multichain-account-menu-popover' ;
1112
12- private readonly ethereumAccountOption = { text : 'Ethereum account' , tag : 'button' } ;
13+ private readonly ethereumAccountOption = {
14+ text : 'Ethereum account' ,
15+ tag : 'button' ,
16+ } ;
1317
14- private readonly solanaAccountOption = { text : 'Solana account' , tag : 'button' } ;
18+ private readonly solanaAccountOption = {
19+ text : 'Solana account' ,
20+ tag : 'button' ,
21+ } ;
1522
16- private readonly accountItems = '[data-testid^="wallet-details-account-item-"]' ;
23+ private readonly accountItems =
24+ '[data-testid^="wallet-details-account-item-"]' ;
1725
1826 constructor ( driver : Driver ) {
1927 this . driver = driver ;
2028 }
2129
22- async check_pageIsLoaded ( ) : Promise < void > {
30+ async checkPageIsLoaded ( ) : Promise < void > {
2331 console . log ( 'Check wallet details page is loaded' ) ;
2432 await this . driver . waitForSelector ( this . walletDetailsPage ) ;
2533 }
2634
27- async check_walletNameIsDisplayed ( walletName : string ) : Promise < void > {
35+ async checkWalletNameIsDisplayed ( walletName : string ) : Promise < void > {
2836 console . log ( `Check wallet name "${ walletName } " is displayed` ) ;
2937 await this . driver . waitForSelector ( {
3038 text : walletName ,
31- tag : 'p'
39+ tag : 'p' ,
3240 } ) ;
3341 }
3442
35- async check_balanceIsDisplayed ( balance : string ) : Promise < void > {
43+ async checkBalanceIsDisplayed ( balance : string ) : Promise < void > {
3644 console . log ( `Check balance "${ balance } " is displayed` ) ;
3745 await this . driver . waitForSelector ( {
3846 text : balance ,
39- tag : 'span'
47+ tag : 'span' ,
4048 } ) ;
4149 }
4250
43- async check_accountIsDisplayed ( accountName : string ) : Promise < void > {
51+ async checkAccountIsDisplayed ( accountName : string ) : Promise < void > {
4452 console . log ( `Check account "${ accountName } " is displayed` ) ;
4553 await this . driver . waitForSelector ( {
4654 text : accountName ,
47- tag : 'p'
48- } ) ;
55+ tag : 'p' ,
56+ } ) ;
4957 }
5058
51- async check_addAccountButtonIsDisplayed ( ) : Promise < void > {
59+ async checkAddAccountButtonIsDisplayed ( ) : Promise < void > {
5260 console . log ( 'Check add account button is displayed' ) ;
5361 await this . driver . waitForSelector ( this . addAccountButton ) ;
5462 }
@@ -58,17 +66,17 @@ class WalletDetailsPage {
5866 await this . driver . clickElement ( this . addAccountButton ) ;
5967 }
6068
61- async check_accountTypeModalIsDisplayed ( ) : Promise < void > {
69+ async checkAccountTypeModalIsDisplayed ( ) : Promise < void > {
6270 console . log ( 'Check account type selection modal is displayed' ) ;
6371 await this . driver . waitForSelector ( this . accountTypeModal ) ;
6472 }
6573
66- async check_ethereumAccountOptionIsDisplayed ( ) : Promise < void > {
74+ async checkEthereumAccountOptionIsDisplayed ( ) : Promise < void > {
6775 console . log ( 'Check Ethereum account option is displayed' ) ;
6876 await this . driver . waitForSelector ( this . ethereumAccountOption ) ;
6977 }
7078
71- async check_solanaAccountOptionIsDisplayed ( ) : Promise < void > {
79+ async checkSolanaAccountOptionIsDisplayed ( ) : Promise < void > {
7280 console . log ( 'Check Solana account option is displayed' ) ;
7381 await this . driver . waitForSelector ( this . solanaAccountOption ) ;
7482 }
@@ -78,13 +86,17 @@ class WalletDetailsPage {
7886 await this . driver . clickElement ( this . ethereumAccountOption ) ;
7987 }
8088
81- async check_numberOfAccountsDisplayed ( expectedCount : number ) : Promise < void > {
89+ async checkNumberOfAccountsDisplayed ( expectedCount : number ) : Promise < void > {
8290 console . log ( `Check ${ expectedCount } accounts are displayed` ) ;
83- const accountItemElements = await this . driver . findElements ( this . accountItems ) ;
91+ const accountItemElements = await this . driver . findElements (
92+ this . accountItems ,
93+ ) ;
8494 if ( accountItemElements . length !== expectedCount ) {
85- throw new Error ( `Expected ${ expectedCount } accounts, but found ${ accountItemElements . length } ` ) ;
95+ throw new Error (
96+ `Expected ${ expectedCount } accounts, but found ${ accountItemElements . length } ` ,
97+ ) ;
8698 }
8799 }
88100}
89101
90- export default WalletDetailsPage ;
102+ export default WalletDetailsPage ;
0 commit comments