-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore/update release with master (#1558)
* Fixing exception in unit tests (#1555) * EUI-8679/8770: WorkbasketFiltersComponent and JudicialUser field fixes (#1553) * updated * updated * updated * Updated * Initial fixes for EXUI-623 * Fix issue via making the jurisdiction model object optionally contain the selected case type * create new toolkit version * Update release notes * Fix tests * EUI-8679/8770: WorkbasketFiltersComponent and JudicialUser field fixes EUI-8679: Remove JudicialUser FormControl values from the overall FormGroup value stored and passed as search criteria by the `WorkbasketFiltersComponent` when applying filters; EUI-8770: Ensure the `WorkbasketFiltersComponent` announces the selected jurisdiction and case type via the `JurisdictionService`; in the `WriteJudicialUserField` component, get the current jurisdiction and case type from the `JurisdictionService` if no case info is present. * Fix import ordering * EUI-8679/8770: WorkbasketFiltersComponent and JudicialUser field fixes Re-tag for formal release. Also includes partial reversion of EXUI-623 (`WriteDocumentFieldComponent` changes) due to deficient unit test coverage. --------- Co-authored-by: Muhammad Anjum <[email protected]> Co-authored-by: Andy Wilkins <[email protected]> Co-authored-by: Andy Wilkins <[email protected]> --------- Co-authored-by: Andy Wilkins <[email protected]> Co-authored-by: Muhammad Anjum <[email protected]> Co-authored-by: Andy Wilkins <[email protected]>
- Loading branch information
1 parent
99cc702
commit d182ba2
Showing
14 changed files
with
199 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ import { CaseEvent } from '../../domain/definition/case-event.model'; | |
import { CaseTypeLite } from '../../domain/definition/case-type-lite.model'; | ||
import { Jurisdiction } from '../../domain/definition/jurisdiction.model'; | ||
import { createACL } from '../../fixture/shared.test.fixture'; | ||
import { AlertService, DefinitionsService, OrderService, SessionStorageService } from '../../services'; | ||
import { AlertService, DefinitionsService, JurisdictionService, OrderService, SessionStorageService } from '../../services'; | ||
import { MockRpxTranslatePipe } from '../../test/mock-rpx-translate.pipe'; | ||
import { CreateCaseFiltersComponent } from './create-case-filters.component'; | ||
import createSpyObj = jasmine.createSpyObj; | ||
|
@@ -263,6 +263,7 @@ const FILTERED_CASE_EVENTS: CaseEvent[] = [{ | |
let mockDefinitionsService: any; | ||
let mockOrderService: any; | ||
let mockAlertService: any; | ||
let jurisdictionService: any; | ||
|
||
const TEST_FORM_GROUP = new FormGroup({}); | ||
|
||
|
@@ -297,6 +298,9 @@ describe('CreateCaseFiltersComponent', () => { | |
sessionStorageService = jasmine.createSpyObj<SessionStorageService>('sessionStorageService', ['getItem']); | ||
sessionStorageService.getItem.and.returnValue(`{"id": 1, "forename": "Firstname", "surname": "Surname", | ||
"roles": ["role1", "role3"], "email": "[email protected]","token": null}`); | ||
jurisdictionService = createSpyObj<JurisdictionService>('jurisdictionService', | ||
['announceSelectedJurisdiction']); | ||
|
||
|
||
TestBed | ||
.configureTestingModule({ | ||
|
@@ -311,7 +315,8 @@ describe('CreateCaseFiltersComponent', () => { | |
{ provide: OrderService, useValue: mockOrderService }, | ||
{ provide: AlertService, useValue: mockAlertService }, | ||
{ provide: DefinitionsService, useValue: mockDefinitionsService }, | ||
{ provide: SessionStorageService, useValue: sessionStorageService} | ||
{ provide: SessionStorageService, useValue: sessionStorageService }, | ||
{ provide: JurisdictionService, useValue: jurisdictionService} | ||
] | ||
}) | ||
.compileComponents(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.