File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
tests/govtool-frontend/playwright/tests Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { pollTransaction } from "@helpers/transaction";
66import { test as setup } from "@fixtures/walletExtension" ;
77import { loadAmountFromFaucet } from "@services/faucetService" ;
88import kuberService from "@services/kuberService" ;
9+ import { functionWaitedAssert } from "@helpers/waitedLoop" ;
910
1011setup . describe . configure ( { timeout : environments . txTimeOut } ) ;
1112
@@ -16,9 +17,15 @@ setup.beforeEach(async () => {
1617} ) ;
1718
1819setup ( "Faucet setup" , async ( ) => {
19- const balance = await kuberService . getBalance ( faucetWallet . address ) ;
20- if ( balance > 100_000 ) return ;
20+ let balance : number ;
21+ functionWaitedAssert (
22+ async ( ) => {
23+ balance = await kuberService . getBalance ( faucetWallet . address ) ;
24+ } ,
25+ { message : "get balance" }
26+ ) ;
2127
28+ if ( balance > 100_000 ) return ;
2229 const res = await loadAmountFromFaucet ( faucetWallet . address ) ;
2330 await pollTransaction ( res . txid ) ;
2431} ) ;
You can’t perform that action at this time.
0 commit comments