@openmrs/esm-billing-app 1.5.0 → 1.5.1-pre.2154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,262 +0,0 @@
1
-
2
-  RUN  v4.1.0 /home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app
3
-
4
- stderr | src/invoice/invoice.test.tsx > Invoice > should render invoice details correctly
5
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
6
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
7
- at InvoiceTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/invoice/invoice-table.component.tsx:24:25)
8
- at div
9
- at div
10
- at Invoice (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/invoice/invoice.component.tsx:62:72)
11
-
12
- ✓ src/billing-form/billing-form.test.tsx (30 tests) 3325ms
13
- ✓ should call processBillItems on submit in create mode  617ms
14
- ✓ src/billing.resource.test.ts (37 tests) 85ms
15
- stderr | src/billable-services/billable-service-form/billable-service-form.test.tsx > BillableServiceFormWorkspace > Form Validation > should show "Price must be greater than 0" error for negative price
16
- Warning: Failed prop type: The prop `children` is marked as required in `ForwardRef`, but its value is `undefined`.
17
- at /home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/Text/Text.js:17:3
18
- at /home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/NumberInput/NumberInput.js:50:5
19
- at div
20
- at /home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/Layer/index.js:32:5
21
- at Controller (file:///home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/react-hook-form/dist/index.esm.mjs:543:37)
22
- at div
23
- at div
24
- at section
25
- at div
26
- at /home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/Stack/Stack.js:43:9
27
- at form
28
- at Form (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/Form/Form.js:19:3)
29
- at div
30
- at Mock (file:///home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@vitest/spy/dist/index.js:332:34)
31
- at BillableServiceFormWorkspace (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/billable-services/billable-service-form/billable-service-form.workspace.tsx:113:57)
32
-
33
- stderr | src/invoice/invoice-table.test.tsx > InvoiceTable > should render table headers correctly
34
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
35
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
36
- at InvoiceTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/invoice/invoice-table.component.tsx:24:25)
37
-
38
- ✓ src/invoice/invoice.test.tsx (52 tests) 14134ms
39
- ✓ should render invoice details correctly  575ms
40
- ✓ should handle print button click  300ms
41
- ✓ should search and filter line items in the table  1608ms
42
- ✓ should handle bill data updates via mutate  322ms
43
- ✓ hides the per-line-item "Request discount" action for PAID bills  543ms
44
- ✓ hides the per-line-item "Request discount" action for ADJUSTED bills  385ms
45
- ✓ hides the per-line-item "Request discount" action when an existing PENDING discount targets the line  366ms
46
- ✓ hides the per-line-item "Request discount" action when an existing APPROVED discount targets the line  431ms
47
- ✓ hides the per-line-item "Request discount" action when an existing REJECTED discount targets the line  367ms
48
- ✓ hides the per-line-item "Request discount" action when a PENDING bill-level discount exists  566ms
49
- ✓ hides the per-line-item "Request discount" action when a APPROVED bill-level discount exists  418ms
50
- ✓ hides the per-line-item "Request discount" action when a REJECTED bill-level discount exists  416ms
51
- ✓ src/billable-services/billable-service-form/billable-service-form.test.tsx (48 tests) 15609ms
52
- ✓ should render billable services form and generate correct payload  1264ms
53
- ✓ should call closeWorkspaceWithSavedChanges after successful save  726ms
54
- ✓ should disable buttons during submission  669ms
55
- ✓ should show loading indicator in save button during submission  729ms
56
- ✓ should accept form submission without short name (short name is optional)  503ms
57
- ✓ should trim leading and trailing whitespace from service name and short name  628ms
58
- ✓ should enforce 255 character limit on service name input  1228ms
59
- ✓ should enforce 255 character limit on short name input  1042ms
60
- ✓ should show "Price must be greater than 0" error for zero price  734ms
61
- ✓ should show "Price must be greater than 0" error for negative price  637ms
62
- ✓ should show "Service name is required" error when service name is empty  566ms
63
- ✓ should accept valid decimal price values  610ms
64
- ✓ should show "Service type is required" error when not selected  481ms
65
- ✓ should show "Payment mode is required" error when not selected  440ms
66
- ✓ should show "Price is required" error when price field is empty  581ms
67
- ✓ should allow adding multiple payment options with different payment modes  824ms
68
- ✓ should validate each payment option independently  754ms
69
- ✓ should allow selecting different payment modes in multiple fields  1044ms
70
- ✓ should display error snackbar when create API call fails  759ms
71
- stderr | src/bills-table/bills-table.test.tsx > BillsTable > renders data table with pending bills
72
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
73
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
74
- at BillsTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/bills-table/bills-table.component.tsx:24:68)
75
-
76
- ✓ src/invoice/invoice-table.test.tsx (32 tests) 7099ms
77
- ✓ should render table headers correctly  594ms
78
- ✓ should open edit modal when edit button is clicked  390ms
79
- ✓ should open delete modal when delete button is clicked  309ms
80
- ✓ should filter line items based on search term  659ms
81
- ✓ should show all items when search is cleared  810ms
82
- ✓ should show empty state when search has no results  416ms
83
- ✓ opens the request-discount modal with lineItem scope  313ms
84
- stderr | src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.test.tsx > ReviewBillRefundsModal > disables Approve on all cards while any card approval is in flight
85
- Warning: An update to ReviewBillRefundsModal inside a test was not wrapped in act(...).
86
-
87
- When testing, code that causes React state updates should be wrapped into act(...):
88
-
89
- act(() => {
90
- /* fire events that update state */
91
- });
92
- /* assert on the output */
93
-
94
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
95
- at ReviewBillRefundsModal (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.tsx:26:35)
96
-
97
- stderr | src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.test.tsx > ReviewBillRefundsModal > disables Confirm reject on any card while another card approval is in flight
98
- Warning: An update to ReviewBillRefundsModal inside a test was not wrapped in act(...).
99
-
100
- When testing, code that causes React state updates should be wrapped into act(...):
101
-
102
- act(() => {
103
- /* fire events that update state */
104
- });
105
- /* assert on the output */
106
-
107
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
108
- at ReviewBillRefundsModal (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.tsx:26:35)
109
-
110
- ✓ src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.test.tsx (19 tests) 2516ms
111
- ✓ renders the receipt rail and review stack  360ms
112
- ✓ src/bills-table/bills-table.test.tsx (20 tests) 2647ms
113
- ✓ should pass search term to backend API  329ms
114
- ✓ should filter by PENDING status when "Pending confirmation" is selected  399ms
115
- stderr | src/invoice/payments/payments.test.tsx > Payments > renders payment form and history
116
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
117
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
118
- at PaymentHistory (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/invoice/payments/payment-history/payment-history.component.tsx:13:27)
119
- at div
120
- at div
121
- at div
122
- at FormProvider (file:///home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/react-hook-form/dist/index.esm.mjs:166:13)
123
- at Payments (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/invoice/payments/payments.component.tsx:35:21)
124
-
125
- ✓ src/invoice/payments/payments.test.tsx (19 tests) 1105ms
126
- ✓ src/bill-item-actions/edit-bill-item.test.tsx (11 tests) 2070ms
127
- ✓ src/modal/delete-line-item-confirmation.modal.test.tsx (16 tests) 4360ms
128
- ✓ calls deleteBillItem API and shows success snackbar  392ms
129
- ✓ shows error snackbar when delete fails  386ms
130
- ✓ disables delete button during deletion  411ms
131
- ✓ shows inline loading indicator during deletion  356ms
132
- ✓ does not call onMutate when deletion fails  301ms
133
- ✓ re-enables delete button after failed deletion  314ms
134
- ✓ trims void reason before sending to API  379ms
135
- ✓ src/billing-form/billing-checkin-form.test.tsx (7 tests) 2347ms
136
- ✓ should show the last visit banner when last visit info is available  385ms
137
- ✓ should show billable service dropdown when a paying method is selected  703ms
138
- ✓ should hide billable service dropdown when switched to non-paying  320ms
139
- ✓ should render the form correctly and generate the required payload  626ms
140
- stderr | src/modal/finalize-bill-confirmation.modal.test.tsx > FinalizeBillModal > shows error snackbar when finalize fails
141
- [FinalizeBillModal] Bill finalization failed { message: 'Network error' }
142
-
143
- stderr | src/modal/finalize-bill-confirmation.modal.test.tsx > FinalizeBillModal > shows error from responseBody when available
144
- [FinalizeBillModal] Bill finalization failed { responseBody: { error: { message: 'Bill cannot be finalized' } } }
145
-
146
- stderr | src/modal/finalize-bill-confirmation.modal.test.tsx > FinalizeBillModal > shows fallback error message when error has no message
147
- [FinalizeBillModal] Bill finalization failed {}
148
-
149
- stderr | src/modal/finalize-bill-confirmation.modal.test.tsx > FinalizeBillModal > re-enables finalize button after failed finalization
150
- [FinalizeBillModal] Bill finalization failed { message: 'error' }
151
-
152
- stderr | src/modal/finalize-bill-confirmation.modal.test.tsx > FinalizeBillModal > does not call onMutate when finalization fails
153
- [FinalizeBillModal] Bill finalization failed { message: 'error' }
154
-
155
- ✓ src/modal/finalize-bill-confirmation.modal.test.tsx (11 tests) 1003ms
156
- ✓ src/refunds/request-refund.modal.test.tsx (10 tests) 2665ms
157
- ✓ blocks submit when reason is empty  461ms
158
- ✓ blocks submit when amount exceeds remainingRefundable  397ms
159
- ✓ submits a valid request and closes  425ms
160
- ✓ submits with lineItem uuid when lineItem prop is provided  504ms
161
- stderr | src/bill-history/bill-history.test.tsx > BillHistory > should render bills table
162
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
163
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
164
- at BillHistory (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/bill-history/bill-history.component.tsx:25:24)
165
-
166
- ✓ src/bill-history/bill-history.test.tsx (7 tests) 2068ms
167
- ✓ should render bills table  1075ms
168
- ✓ should show overflow menu with "Add items to bill" for PENDING bills  352ms
169
- ✓ should launch workspace with billUuid when "Add items to bill" is clicked  501ms
170
- ✓ src/discounts/request-discount.modal.test.tsx (8 tests) 3047ms
171
- ✓ blocks submit when justification is empty  491ms
172
- ✓ rejects percentage value greater than 100  409ms
173
- ✓ flags a fixed-amount discount that exceeds the amount due  448ms
174
- ✓ flags a fixed-amount discount that exceeds the line item total  395ms
175
- ✓ flags a fixed-amount discount that would push the bill amount due negative on a partially-paid bill  376ms
176
- ✓ submits a valid request and closes  427ms
177
- stderr | src/billable-services/billable-services.test.tsx > BillableService > renders billable services table correctly
178
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
179
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
180
- at BillableServices (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/billable-services/billable-services.component.tsx:24:76)
181
-
182
- ✓ src/discounts/admin/review-bill-discounts/review-bill-discounts.modal.test.tsx (5 tests) 841ms
183
- ✓ disables approve and reject on a bill that is neither PENDING nor POSTED  390ms
184
- ✓ src/billable-services/billable-services.test.tsx (6 tests) 2154ms
185
- ✓ renders billable services table correctly  320ms
186
- ✓ filters services based on search input  1128ms
187
- ✓ shows empty state message when search returns no results  422ms
188
- ✓ src/invoice/payments/payment-form/payment-form.test.tsx (8 tests) 389ms
189
- ✓ src/invoice/printable-invoice/printable-invoice-header.test.tsx (8 tests) 248ms
190
- stderr | src/invoice/payments/payment-history/payment-history.test.tsx > PaymentHistory Component > renders without crashing
191
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
192
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
193
- at PaymentHistory (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/invoice/payments/payment-history/payment-history.component.tsx:13:27)
194
-
195
- ✓ src/invoice/payments/payment-history/payment-history.test.tsx (7 tests) 225ms
196
- ✓ src/payment-status-tag/payment-status-tag.test.tsx (8 tests) 353ms
197
- stderr | src/refunds/refunds-table.test.tsx > RefundsTable > renders rows for each refund
198
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
199
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
200
- at RefundsTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/refunds/refunds-table.component.tsx:26:25)
201
-
202
- ✓ src/modal/delete-bill-confirmation.modal.test.tsx (6 tests) 1974ms
203
- ✓ calls deleteBill with trimmed reason, fires onSuccess, shows success snackbar, and closes modal  704ms
204
- ✓ shows error message from responseBody when delete fails  405ms
205
- ✓ shows fallback error message when error has no responseBody message  325ms
206
- ✓ trims reason before sending to API  413ms
207
- ✓ src/refunds/refunds-table.test.tsx (6 tests) 639ms
208
- stderr | src/discounts/admin/discount-requests.test.tsx > DiscountRequests page > lists one row per bill with the bill metadata
209
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
210
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
211
- at DiscountRequests (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/discounts/admin/discount-requests.component.tsx:36:55)
212
-
213
- ✓ src/discounts/admin/discount-requests.test.tsx (4 tests) 620ms
214
- stderr | src/visit-bills/visit-bills-panel.test.tsx > VisitBillsPanel > renders bills table with correct column headers
215
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
216
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
217
- at VisitBillsPanel (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/visit-bills/visit-bills-panel.component.tsx:19:28)
218
-
219
- ✓ src/visit-bills/visit-bills-panel.test.tsx (5 tests) 117ms
220
- stderr | src/refunds/admin/refund-requests.test.tsx > RefundRequests page > lists one row per bill
221
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
222
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
223
- at RefundRequests (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/refunds/admin/refund-requests.component.tsx:37:55)
224
-
225
- ✓ src/refunds/admin/refund-requests.test.tsx (4 tests) 662ms
226
- ✓ opens review modal on row click  331ms
227
- ✓ src/billing-form/billing-form.resource.test.ts (6 tests) 40ms
228
- ✓ src/invoice/printable-invoice/print-receipt.test.tsx (7 tests) 4317ms
229
- ✓ initiates download when button is clicked  996ms
230
- ✓ re-enables button after download completes  1076ms
231
- ✓ prevents multiple simultaneous downloads  1043ms
232
- ✓ handles empty bill UUID  1029ms
233
- stderr | src/discounts/discounts-table.test.tsx > DiscountsTable > renders one row per discount with status tag
234
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
235
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
236
- at DiscountsTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/discounts/discounts-table.component.tsx:24:27)
237
-
238
- ✓ src/discounts/discounts-table.test.tsx (3 tests) 171ms
239
- ✓ src/modal/require-payment-modal.test.tsx (4 tests) 309ms
240
- ✓ src/refunds/refunds.resource.test.ts (3 tests) 11ms
241
- ✓ src/metrics-cards/metrics-cards.test.tsx (3 tests) 138ms
242
- ✓ src/billable-services-admin-card-link.test.tsx (1 test) 347ms
243
- ✓ should render billable services admin link  343ms
244
- ✓ src/left-panel-link.test.tsx (2 tests) 113ms
245
- ✓ src/billable-services/billable-services-left-panel-menu.test.tsx (1 test) 50ms
246
- ✓ src/refunds/refunds.types.test.ts (2 tests) 5ms
247
- ✓ src/invoice/printable-invoice/printable-footer.test.tsx (1 test) 52ms
248
- stderr | src/billing-dashboard/billing-dashboard.test.tsx > BillingDashboard > renders the billing page header
249
- Warning: Failed prop type: Invalid prop `children` supplied to `DataTable`, expected a ReactNode.
250
- at DataTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/node_modules/@carbon/react/lib/components/DataTable/DataTable.js:93:5)
251
- at BillsTable (/home/runner/work/openmrs-esm-billing-app/openmrs-esm-billing-app/src/bills-table/bills-table.component.tsx:24:68)
252
- at section
253
- at BillingDashboard
254
-
255
- ✓ src/billing-dashboard/billing-dashboard.test.tsx (1 test) 99ms
256
- ✓ src/billable-services/dashboard/dashboard.test.tsx (1 test) 37ms
257
-
258
-  Test Files  39 passed (39)
259
-  Tests  429 passed (429)
260
-  Start at  12:01:33
261
-  Duration  78.73s (transform 6.77s, setup 5.16s, import 86.89s, tests 77.99s, environment 51.75s)
262
-
File without changes