Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikNoga committed Aug 1, 2024
1 parent d881166 commit 07884c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ describe('referencedata-facilities-cache run', function() {
this.postLogoutAction = this.getLastCall(loginServiceSpy.registerPostLogoutAction).args[0];

spyOn(this.facilityService, 'cacheAllMinimal');
spyOn(this.facilityService, 'getFacilitiesWithoutWards');
spyOn(this.facilityService, 'clearMinimalFacilitiesCache');
spyOn(this.facilityService, 'clearFacilitiesWithoutWardsCache');
});

describe('run block', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/requisition-order-create/order-create-tab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const OrderCreateTab = ({ passedOrder,
validateRow={validateRow}
showValidationErrors={showValidationErrors}
isReadOnly={isTableReadOnly}
pageSize={10} // TODO: remove this
pageSize={6}
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/requisition-order-create/order-create-table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const OrderCreateTable = ({ isReadOnly }) => {
<button
type="button"
className="btn primary"
// disabled={createOrderDisabled(orders)}
disabled={createOrderDisabled(orders)}
onClick={() => setIsSummaryModalOpen(true)}
>{formatMessage('requisition.orderCreate.create')}</button>
</>
Expand Down

0 comments on commit 07884c4

Please sign in to comment.