[ACS-8398] unit tests part 3 (#4163)

* ACS-8398 Unit tests for search ai effects

* ACS-8398 Unit tests for canDisplayKnowledgeRetrievalButton rule

* ACS-8398 Unit tests for changes in document base page

* ACS-8398 Added unit tests for changes in recent files component

* ACS-8398 Unit tests for changes in lists pages

* ACS-8398 Moved variable to inside of describe

* ACS-8398 Moved repeated code to function

* ACS-8398 Reverted one change

* ACS-8398 Fix after rebase

* ACS-8398 Fix issue with repeated code

* ACS-8398 Fix issue with repeated code

* ACS-8398 Fixed unit tests

* ACS-8398 Fixed unit tests

* ACS-8398 Trigger job
This commit is contained in:
AleksanderSklorz
2024-10-07 13:50:01 +02:00
committed by GitHub
parent 3ec6d0be32
commit 0fb9f9ebe3
9 changed files with 325 additions and 39 deletions

View File

@@ -34,6 +34,7 @@ import { BehaviorSubject, Subject } from 'rxjs';
import { AppTestingModule } from '../../../testing/app-testing.module';
import { AppService } from '@alfresco/aca-shared';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { testHeader } from '../../../testing/document-base-page-utils';
describe('SearchComponent', () => {
let component: SearchResultsComponent;
@@ -279,4 +280,6 @@ describe('SearchComponent', () => {
expect(queryBuilder.userQuery).toBe(`((=cm:tag:"orange"))`);
expect(queryBuilder.update).toHaveBeenCalled();
});
testHeader(SearchResultsComponent, false);
});