@@ -49,13 +49,14 @@ Setup Test Data
4949 ... ${ns } Status__c=Paid
5050 Set Suite Variable ${fully_disbursed }
5151 &{gau_paid } = API Create GAU Expenditure ${gau } [Id]
52- ... ${fully_disbursed } [Id]
53- Set Suite Variable ${gau_paid }
52+ ... ${fully_disbursed } [Id]
53+ Set Suite Variable ${gau_paid }
5454
5555*** Test Case ***
5656Verify GAU Expenditure created is added on Disbursement
5757 [Documentation] Create GAU Expenditure via API and
5858 ... verify record is added on Disbursement Record
59+ [tags] feature:GAUExpenditure
5960 Go To Page Listing ${ns } Funding_Request__c
6061 Click Link With Text ${funding_request } [Name]
6162 Click Tab Disbursements
@@ -68,6 +69,7 @@ Verify GAU Expenditure created is added on Disbursement
6869Verify GAU Expenditure on Paid Disbursement
6970 [Documentation] Create a Disbursement and set status to Paid
7071 ... Verify Manage Expenditure is disabled
72+ [tags] feature:GAUExpenditure
7173 Go To Page Listing ${ns } Funding_Request__c
7274 Click Link With Text ${disbursed_request } [Name]
7375 Click Tab Disbursements
@@ -79,6 +81,7 @@ Verify GAU Expenditure on Paid Disbursement
7981Verify GAU Expenditure on Canceled Disbursement
8082 [Documentation] Create a Disbursement and set status to Canceled
8183 ... Verify Manage Expenditure is disabled
84+ [tags] feature:GAUExpenditure
8285 ${cancel_disbursed } API Create Disbursement on a Funding Request
8386 ... ${disbursed_request } [Id]
8487 ... ${ns } Status__c=Cancelled
@@ -89,3 +92,27 @@ Verify GAU Expenditure on Canceled Disbursement
8992 Click Related List Link with Text ${cancel_disbursed } [Name]
9093 Click Tab GAU Expenditures
9194 Verify Button Status Save Updates=disabled
95+
96+ Verify error if GAU Expenditure > GAU available
97+ [Documentation] Create a Disbursement and set status to Canceled
98+ ... Verify Manage Expenditure is disabled
99+ [tags] feature:GAUExpenditure
100+ ${scheduled_disbursement } API Create Disbursement on a Funding Request
101+ ... ${funding_request } [Id]
102+ ... ${ns } Status__c=Scheduled
103+ &{gau_new } = API Create GAU
104+ ... ${ns_npsp } Total_Allocations__c=10000
105+ Go To Page Listing ${ns } Funding_Request__c
106+ Click Link With Text ${funding_request } [Name]
107+ Click Tab Disbursements
108+ Click Related List Link with Text ${scheduled_disbursement } [Name]
109+ Click Tab GAU Expenditures
110+ click related list wrapper button GAU Expenditures New
111+ Populate Lookup Field General Accounting Unit ${gau_new } [Name]
112+ Populate Field Amount 11000
113+ Click Save
114+ Reload Page
115+ Click Tab GAU Expenditures
116+ Verify Button Status Save Updates=disabled
117+ ${field } Get Outboundfundsnpsp Locator error_locator
118+ Page Should Contain Element ${field }
0 commit comments