@@ -6,7 +6,6 @@ import { SideMenu } from '../page-objects/components/SideMenu';
66import { LoginPage } from '../page-objects/pages/LoginPage' ;
77import {
88 FinancialPositionsPage ,
9- FinancialPositionsRow ,
109 FinancialPositionUpdateConfirmModal ,
1110 PositionUpdateAction ,
1211 FinancialPositionUpdateModal
@@ -16,7 +15,7 @@ import { VoodooClient, protocol } from 'mojaloop-voodoo-client';
1615fixture `DFSPFinancialPositions`
1716 . page `${ config . financePortalEndpoint } `
1817 . before ( async ( ctx ) => {
19- const cli = new VoodooClient ( 'ws://localhost:3030/voodoo' , { defaultTimeout : 15000 } ) ;
18+ const cli = new VoodooClient ( 'ws://localhost:3030/voodoo' , { defaultTimeout : config . voodooTimeoutMs } ) ;
2019 await cli . connected ( ) ;
2120
2221 const hubAccounts : protocol . HubAccount [ ] = [
@@ -82,6 +81,29 @@ test.meta({
8281 }
8382)
8483
84+ test (
85+ 'Enable/disable account works correctly' ,
86+ async ( t ) => {
87+ const dfspRows = await FinancialPositionsPage . getDfspRowMap ( ) ;
88+ const testRow = dfspRows . get ( t . fixtureCtx . participants [ 0 ] . name ) ;
89+ assert ( testRow , 'Expected to find the participant we created in the list of financial positions' ) ;
90+
91+ await t
92+ . expect ( testRow . enableDisableButton . innerText )
93+ . eql ( 'Disable' , 'Expected new test participant to have enabled account' ) ;
94+ await t . click ( testRow . enableDisableButton ) ;
95+
96+ await t
97+ . expect ( testRow . enableDisableButton . innerText )
98+ . eql ( 'Enable' , 'Expected test participant to have disabled account after disable selected' ) ;
99+ await t . click ( testRow . enableDisableButton ) ;
100+
101+ await t
102+ . expect ( testRow . enableDisableButton . innerText )
103+ . eql ( 'Disable' , 'Expected test participant to have disabled account after enable selected' ) ;
104+ }
105+ )
106+
85107test . skip . meta ( {
86108 ID : 'MMD-T26' ,
87109 STORY : 'MMD-376' ,
0 commit comments