@@ -76,8 +76,8 @@ describe('wallet', () => {
7676 } ) ;
7777 walletAddr1 = await $ ( spanAddress ) . getText ( ) ;
7878 walletStakeAddr1 = await $ ( spanStakeAddress ) . getText ( ) ;
79- expect ( walletAddr1 ) . toHaveTextContaining ( 'addr' ) ;
80- expect ( walletStakeAddr1 ) . toHaveTextContaining ( 'stake' ) ;
79+ expect ( walletAddr1 ) . toContain ( 'addr' ) ;
80+ expect ( walletStakeAddr1 ) . toContain ( 'stake' ) ;
8181 await expect ( $ ( activeWalletName ) ) . toHaveText ( getObservableWalletName ( 0 ) ) ;
8282 } ) ;
8383 } ) ;
@@ -102,14 +102,14 @@ describe('wallet', () => {
102102
103103 // Delegation transaction was submitted successfully
104104 const txId = await $ ( '#multiDelegation .delegateTxId' ) . getText ( ) ;
105- expect ( txId ) . toHaveTextContaining ( 'TxId' ) ;
105+ expect ( txId ) . toContain ( 'TxId' ) ;
106106
107107 // Wallet reports delegating to 3 pools
108108 await browser . waitUntil (
109109 async ( ) => {
110110 try {
111- const delegatedPools = await $$ ( liPools ) ;
112- return delegatedPools . length === NUM_POOLS ;
111+ const delegatedPoolCount = await $$ ( liPools ) . length ;
112+ return delegatedPoolCount === NUM_POOLS ;
113113 } catch {
114114 return false ;
115115 }
@@ -125,8 +125,8 @@ describe('wallet', () => {
125125 it ( 'can switch to another wallet' , async ( ) => {
126126 // Automatically deactivates first wallet, but keeps the store available for future activation
127127 await $ ( btnActivateWallet2 ) . click ( ) ;
128- await expect ( $ ( spanAddress ) ) . not . toHaveTextContaining ( walletAddr1 ) ;
129- await expect ( $ ( spanAddress ) ) . toHaveTextContaining ( 'addr' ) ;
128+ await expect ( $ ( spanAddress ) ) . not . toHaveText ( walletAddr1 , { containing : true } ) ;
129+ await expect ( $ ( spanAddress ) ) . toHaveText ( 'addr' , { containing : true } ) ;
130130 await expect ( $ ( activeWalletName ) ) . toHaveText ( getObservableWalletName ( 1 ) ) ;
131131 } ) ;
132132
@@ -138,10 +138,10 @@ describe('wallet', () => {
138138 it ( 'can destroy second wallet before switching back to the first wallet' , async ( ) => {
139139 // Destroy also clears associated store. Store will be rebuilt during future activation of same wallet
140140 await $ ( destroyWallet ) . click ( ) ;
141- await expect ( $ ( spanAddress ) ) . toHaveTextContaining ( '-' ) ;
141+ await expect ( $ ( spanAddress ) ) . toHaveText ( '-' , { containing : true } ) ;
142142
143143 await $ ( btnActivateWallet1 ) . click ( ) ;
144- await expect ( $ ( spanAddress ) ) . toHaveTextContaining ( walletAddr1 ) ;
144+ await expect ( $ ( spanAddress ) ) . toHaveText ( walletAddr1 , { containing : true } ) ;
145145 await expect ( $ ( activeWalletName ) ) . toHaveText ( getObservableWalletName ( 0 ) ) ;
146146 } ) ;
147147
0 commit comments