File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
tests/govtool-frontend/playwright/tests Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,21 @@ import { test as setup } from "@fixtures/walletExtension";
1010
1111import kuberService from "@services/kuberService" ;
1212import walletManager from "lib/walletManager" ;
13+ import { functionWaitedAssert } from "@helpers/waitedLoop" ;
1314
1415const REGISTER_DREP_WALLETS_COUNT = 6 ;
1516const DREP_WALLETS_COUNT = 9 ;
1617
1718let dRepDeposit : number ;
1819
1920setup . beforeAll ( async ( ) => {
20- const res = await kuberService . queryProtocolParams ( ) ;
21- dRepDeposit = res . dRepDeposit ;
21+ await functionWaitedAssert (
22+ async ( ) => {
23+ const res = await kuberService . queryProtocolParams ( ) ;
24+ dRepDeposit = res . dRepDeposit ;
25+ } ,
26+ { name : "queryProtocolParams" }
27+ ) ;
2228} ) ;
2329
2430setup . beforeEach ( async ( ) => {
Original file line number Diff line number Diff line change @@ -7,14 +7,20 @@ import { pollTransaction } from "@helpers/transaction";
77import { test as setup } from "@fixtures/walletExtension" ;
88import kuberService from "@services/kuberService" ;
99import walletManager from "lib/walletManager" ;
10+ import { functionWaitedAssert } from "@helpers/waitedLoop" ;
1011
1112const PROPOSAL_WALLETS_COUNT = 4 ;
1213
1314let govActionDeposit : number ;
1415
1516setup . beforeAll ( async ( ) => {
16- const res = await kuberService . queryProtocolParams ( ) ;
17- govActionDeposit = res . govActionDeposit ;
17+ await functionWaitedAssert (
18+ async ( ) => {
19+ const res = await kuberService . queryProtocolParams ( ) ;
20+ govActionDeposit = res . govActionDeposit ;
21+ } ,
22+ { name : "queryProtocolParams" }
23+ ) ;
1824} ) ;
1925
2026setup . beforeEach ( async ( ) => {
You can’t perform that action at this time.
0 commit comments