mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
remaining unit test fixes for the Angular 15 update (#9218)
* removing excludes from working tests * test fixes for CategoriesManagementComponent * [ci:force] reenabling tests / fixes * fixes in process-services-cloud * change html element type * fix selector in StartProcessComponent
This commit is contained in:
committed by
Vito Albano
parent
737af2a04e
commit
fea3cb98e4
@@ -358,8 +358,8 @@ describe('StartFormComponent', () => {
|
||||
expect(tabField2.name).toBe('Tab 2');
|
||||
expect(tabsWidgetElement).toBeTruthy();
|
||||
});
|
||||
// eslint-disable-next-line
|
||||
xit('should define title and [custom-action-buttons]', async () => {
|
||||
|
||||
it('should define title and [custom-action-buttons]', async () => {
|
||||
getStartFormSpy.and.returnValue(of(startMockFormWithTab));
|
||||
component.processDefinitionId = exampleId1;
|
||||
component.showOutcomeButtons = true;
|
||||
@@ -370,7 +370,7 @@ describe('StartFormComponent', () => {
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
const titleElement = fixture.debugElement.nativeElement.querySelector('mat-mdc-card-title>h2');
|
||||
const titleElement = fixture.debugElement.nativeElement.querySelector('.mdl-card__title-text');
|
||||
const actionButtons = fixture.debugElement.nativeElement.querySelectorAll('.mat-mdc-button');
|
||||
|
||||
expect(titleElement.innerText.trim()).toEqual('Mock Title');
|
||||
|
@@ -333,8 +333,7 @@ describe('StartProcessComponent', () => {
|
||||
expect(getDefinitionsSpy).toHaveBeenCalledWith(123);
|
||||
});
|
||||
|
||||
//eslint-disable-next-line
|
||||
xit('should display the correct number of processes in the select list', async () => {
|
||||
it('should display the correct number of processes in the select list', async () => {
|
||||
const selectElement = fixture.nativeElement.querySelector('button#adf-select-process-dropdown');
|
||||
selectElement.click();
|
||||
|
||||
@@ -342,7 +341,7 @@ describe('StartProcessComponent', () => {
|
||||
fixture.componentInstance.inputAutocomplete.openPanel();
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
const options: any = fixture.debugElement.queryAll(By.css('.mdc-list-item__primary-textk'));
|
||||
const options: any = fixture.debugElement.queryAll(By.css('mat-option'));
|
||||
|
||||
|
||||
expect(options.length).toBe(2);
|
||||
|
Reference in New Issue
Block a user