[ACS-9584] Refresh after the change of name of a node (#12060)

* [ACS-9584] Refresh after the change of name of a node

* [ACS-9584] Add unit test for name change

* [ACS-9584] Merge the changed fields onto the existing one

* [ACS-9584] Refresh does not happen after name change of a file

* [ACS-9584] Page only reload for extension and version change

* [ACS-9584] Add sidebarTemplateContext to unit test

* [ACS-9584] Add unit test for the changes in ngOnChanges

* Render spinner visibility rather than internal field
This commit is contained in:
Shivangi Shree
2026-07-21 07:04:39 +00:00
committed by GitHub
parent 9d5f6e692c
commit 660b14a780
5 changed files with 117 additions and 49 deletions
@@ -52,7 +52,7 @@ describe('PdfViewer Integration with ViewerRenderComponent', () => {
it('should render real PdfViewerComponent for PDF files', async () => {
component.urlFile = 'fake-test-file.pdf';
component.ngOnChanges();
component.ngOnChanges({});
fixture.detectChanges();
await fixture.whenStable();
fixture.detectChanges();
@@ -64,7 +64,7 @@ describe('PdfViewer Integration with ViewerRenderComponent', () => {
it('should pass inputs to real PdfViewerComponent', async () => {
component.urlFile = 'fake-test-file.pdf';
component.allowThumbnails = true;
component.ngOnChanges();
component.ngOnChanges({});
fixture.detectChanges();
await fixture.whenStable();
fixture.detectChanges();
@@ -87,7 +87,7 @@ describe('PdfViewer Integration with ViewerRenderComponent', () => {
testingUtils = new UnitTestingUtils(fixture.debugElement);
component.urlFile = 'fake-test-file.pdf';
component.ngOnChanges();
component.ngOnChanges({});
fixture.detectChanges();
await fixture.whenStable();
fixture.detectChanges();