Rebased ADF Migration PR

This commit is contained in:
Vito Albano
2024-04-22 13:54:47 +01:00
committed by VitoAlbano
parent 0a04e6291d
commit 24c8aec9e5
12 changed files with 135 additions and 164 deletions

View File

@@ -32,6 +32,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatTooltipModule } from '@angular/material/tooltip';
import { AlfrescoApiService, AlfrescoApiServiceMock } from '@alfresco/adf-core';
import { TranslateModule } from '@ngx-translate/core';
describe('TaskAttachmentList', () => {
let component: TaskAttachmentListComponent;
@@ -310,7 +311,7 @@ describe('Custom CustomEmptyTemplateComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), ProcessTestingModule],
imports: [ProcessTestingModule],
declarations: [CustomEmptyTemplateComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
});

View File

@@ -615,10 +615,9 @@ describe('TaskListComponent', () => {
const selectTask1 = await loader.getHarness(MatCheckboxHarness.with({ ancestor: '[data-automation-id="datatable-row-0"]' }));
const selectTask2 = await loader.getHarness(MatCheckboxHarness.with({ ancestor: '[data-automation-id="datatable-row-1"]' }));
await selectTask1.toggle();
await selectTask1.toggle();
await selectTask2.toggle();
expect(component.selectedInstances.length).toBe(2);
expect(component.selectedInstances.length).toBe(1);
});
it('should change selected row after clicking on different row', async () => {