diff --git a/src/app/shared/ds-select/ds-select.component.spec.ts b/src/app/shared/ds-select/ds-select.component.spec.ts index a3e70808d9..ddec73348c 100644 --- a/src/app/shared/ds-select/ds-select.component.spec.ts +++ b/src/app/shared/ds-select/ds-select.component.spec.ts @@ -1,6 +1,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - import { DsSelectComponent } from './ds-select.component'; +import { TranslateModule } from '@ngx-translate/core'; describe('DsSelectComponent', () => { let component: DsSelectComponent; @@ -8,7 +8,12 @@ describe('DsSelectComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ DsSelectComponent ] + imports: [ + TranslateModule.forRoot(), + ], + declarations: [ + DsSelectComponent, + ], }) .compileComponents(); })); diff --git a/src/app/submission/form/collection/submission-form-collection.component.spec.ts b/src/app/submission/form/collection/submission-form-collection.component.spec.ts index 105d94b966..a964d9cd81 100644 --- a/src/app/submission/form/collection/submission-form-collection.component.spec.ts +++ b/src/app/submission/form/collection/submission-form-collection.component.spec.ts @@ -26,6 +26,7 @@ import { PageInfo } from '../../../core/shared/page-info.model'; import { Collection } from '../../../core/shared/collection.model'; import { createTestComponent } from '../../../shared/testing/utils.test'; import { CollectionDataService } from '../../../core/data/collection-data.service'; +import { SharedModule } from '../../../shared/shared.module'; const subcommunities = [Object.assign(new Community(), { name: 'SubCommunity 1', @@ -223,6 +224,7 @@ describe('SubmissionFormCollectionComponent Component', () => { FormsModule, ReactiveFormsModule, NgbModule, + SharedModule, TranslateModule.forRoot() ], declarations: [ @@ -366,8 +368,8 @@ describe('SubmissionFormCollectionComponent Component', () => { comp.searchListCollection$ = observableOf(mockCollectionList); fixture.detectChanges(); - dropdowBtn = fixture.debugElement.query(By.css('#collectionControlsMenuButton')); - dropdownMenu = fixture.debugElement.query(By.css('#collectionControlsDropdownMenu')); + dropdowBtn = fixture.debugElement.query(By.css('#dsSelectMenuButton')); + dropdownMenu = fixture.debugElement.query(By.css('#dsSelectDropdownMenu')); }); it('should have dropdown menu closed', () => {