-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/CB2-11250 - Edit button on additional examiner notes takes you t…
…o blank page (#1447) * feat(cb2-10241): update adr notes to use custom component * feat(cb2-11250): format table * feat(cb2-11250): set up router link * feat(cb2-11250): blank page link working * feat(cb2-11250): revert unnecessary changes * feat(cb2-11250): amend routing function * feat(cb2-11250): fix linting and add unit test * feat(cb2-11250): fix linting and add unit test * feat(cb2-11250): update link design * feat(cb2-11250): fix button link styling --------- Co-authored-by: Brandon Thomas-Davies <87308252+BrandonT95@users.noreply.github.com>
- Loading branch information
1 parent
1645ddd
commit e7e4fd5
Showing
11 changed files
with
158 additions
and
15 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...rd-edit-additional-examiner-note/tech-record-edit-additional-examiner-note.component.html
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<div>This is a blank page right now.</div> |
Empty file.
38 changes: 38 additions & 0 deletions
38
...edit-additional-examiner-note/tech-record-edit-additional-examiner-note.component.spec.ts
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { | ||
AdrExaminerNotesHistoryEditComponent | ||
} from '@forms/custom-sections/adr-examiner-notes-history-edit/adr-examiner-notes-history.component-edit'; | ||
import { DynamicFormsModule } from '@forms/dynamic-forms.module'; | ||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { TechnicalRecordService } from '@services/technical-record/technical-record.service'; | ||
import { provideMockStore } from '@ngrx/store/testing'; | ||
import { initialAppState } from '@store/index'; | ||
import { ActivatedRoute, Router } from '@angular/router'; | ||
import { of } from 'rxjs'; | ||
import { TechRecordEditAdditionalExaminerNoteComponent } from './tech-record-edit-additional-examiner-note.component'; | ||
|
||
|
||
const mockTechRecordService = { | ||
techRecord$: jest.fn(), | ||
}; | ||
describe('TechRecordEditAdditionalExaminerNoteComponent', () => { | ||
let fixture: ComponentFixture<TechRecordEditAdditionalExaminerNoteComponent>; | ||
let component: TechRecordEditAdditionalExaminerNoteComponent; | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [TechRecordEditAdditionalExaminerNoteComponent], | ||
imports: [DynamicFormsModule, FormsModule, ReactiveFormsModule, RouterTestingModule], | ||
providers: [ | ||
{ provide: TechnicalRecordService, useValue: mockTechRecordService }, | ||
provideMockStore({ initialState: initialAppState }), | ||
{ provide: ActivatedRoute, useValue: { params: of([{ id: 1 }]) } }, | ||
], | ||
}).compileComponents(); | ||
fixture = TestBed.createComponent(AdrExaminerNotesHistoryEditComponent); | ||
component = fixture.componentInstance; | ||
}); | ||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
...cord-edit-additional-examiner-note/tech-record-edit-additional-examiner-note.component.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'tech-record-edit-additional-examiner-note', | ||
templateUrl: './tech-record-edit-additional-examiner-note.component.html', | ||
styleUrls: ['./tech-record-edit-additional-examiner-note.component.scss'], | ||
}) | ||
export class TechRecordEditAdditionalExaminerNoteComponent { | ||
|
||
} |
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
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